sfdfds
This commit is contained in:
parent
9a7ca5be74
commit
8688248d1b
2 changed files with 2 additions and 2 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)/10
|
||||
ti = int(time.time() - self.created_utc)/60
|
||||
maxupvotes = min(ti, 31)
|
||||
rand = randint(1, maxupvotes)
|
||||
if self.upvotes < rand:
|
||||
|
|
|
@ -332,7 +332,7 @@ class Submission(Base):
|
|||
if 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 > 20:
|
||||
ti = int(time.time() - self.created_utc)/10
|
||||
ti = int(time.time() - self.created_utc)/60
|
||||
maxupvotes = min(ti, 27)
|
||||
rand = random.randint(1, maxupvotes)
|
||||
if self.upvotes < rand:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue