This commit is contained in:
Aevann1 2021-11-23 02:04:13 +02:00
parent 70e32150a8
commit ba8b92a6bc
6 changed files with 79 additions and 5 deletions

View file

@ -334,7 +334,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)/60
ti = int((time.time() - self.created_utc)/60)
maxupvotes = min(ti, 27)
rand = random.randint(1, maxupvotes)
if self.upvotes < rand: