fsdfds
This commit is contained in:
parent
70e32150a8
commit
ba8b92a6bc
6 changed files with 79 additions and 5 deletions
|
@ -330,7 +330,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 > 60:
|
||||
ti = int(time.time() - self.created_utc)/60
|
||||
ti = int((time.time() - self.created_utc)/60)
|
||||
maxupvotes = min(ti, 31)
|
||||
rand = randint(1, maxupvotes)
|
||||
if self.upvotes < rand:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue