From f42a2c0472385448b991ffb98f08326d0c17b83a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 22 Nov 2021 19:50:34 +0200 Subject: [PATCH] sfdfds --- files/classes/comment.py | 2 +- files/classes/submission.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 3027b52b1..1a285b789 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -330,7 +330,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 > 60: - ti = int(time.time() - self.created_utc)/10 + ti = int(time.time() - self.created_utc)/60 maxupvotes = min(ti, 31) rand = randint(1, maxupvotes) if self.upvotes < rand: diff --git a/files/classes/submission.py b/files/classes/submission.py index d6ffaeb7e..4395a88d2 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -332,7 +332,7 @@ class Submission(Base): if 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 > 20: - ti = int(time.time() - self.created_utc)/10 + ti = int(time.time() - self.created_utc)/60 maxupvotes = min(ti, 27) rand = random.randint(1, maxupvotes) if self.upvotes < rand: