This commit is contained in:
Aevann1 2021-08-28 13:32:52 +02:00
parent ebc4a54478
commit d2c947863e
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
posts.remove(post) posts.remove(post)
break break
if random.random() < 0.02: if random.random() < 0.004:
for post in posts: for post in posts:
if post.author and post.author.shadowbanned: if post.author and post.author.shadowbanned:
rand = random.randint(500,1400) rand = random.randint(500,1400)

View file

@ -163,7 +163,7 @@ def post_id(pid, anything=None, v=None):
else: else:
abort(422) abort(422)
if random.random() < 0.1: if random.random() < 0.02:
for comment in comments: for comment in comments:
if comment.author and comment.author.shadowbanned: if comment.author and comment.author.shadowbanned:
rand = random.randint(500,1400) rand = random.randint(500,1400)