remotes/1693045480750635534/spooky-22
Aevann1 2021-11-13 23:44:07 +02:00
parent 34ef21d6d8
commit 9c8db82f34
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)