diff --git a/files/classes/comment.py b/files/classes/comment.py index ff0a42be7..bc8a1bb6f 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -326,7 +326,7 @@ class Comment(Base): body = body.replace(url, f"{url_noquery}?{urlencode(p, True)}") if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 600: - rand = randint(5,20) + rand = randint(1,16) if self.upvotes < rand: self.upvotes = rand g.db.add(self) diff --git a/files/classes/submission.py b/files/classes/submission.py index 4d93b087f..3ae1d7a6c 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -326,7 +326,7 @@ class Submission(Base): if v and v.nitter: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net") if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 600: - rand = random.randint(5,20) + rand = random.randint(1,16) if self.upvotes < rand: self.upvotes = rand g.db.add(self)