This commit is contained in:
Aevann1 2021-11-13 23:10:57 +02:00
parent 2fcc36e33d
commit 51da23d932
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