remotes/1693045480750635534/spooky-22
Aevann1 2021-11-13 23:10:57 +02:00
parent 301be67a11
commit afab230985
2 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ class Comment(Base):
url_noquery = url.split('?')[0]
body = body.replace(url, f"{url_noquery}?{urlencode(p, True)}")
if v and v.shadowbanned and self.author and self.author.shadowbanned and 86400 > time.time() - self.created_utc > 600:
if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 600:
rand = random.randint(5,20)
if self.upvotes < rand:
self.upvotes = rand

View File

@ -328,7 +328,7 @@ class Submission(Base):
if v and not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com")
if v and v.nitter: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")
if v and v.shadowbanned and self.author and self.author.shadowbanned and 86400 > time.time() - self.created_utc > 600:
if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 600:
rand = random.randint(5,20)
if self.upvotes < rand:
self.upvotes = rand