fdsfds
This commit is contained in:
parent
2fcc36e33d
commit
51da23d932
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue