stop boosting snappy

master
Aevann 2024-02-28 19:19:35 +02:00
parent 33c043b42f
commit ae29872388
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
elif target.hole in BOOSTED_HOLES: elif target.hole in BOOSTED_HOLES:
mul = 1.25 mul = 1.25
if target.body_html and target.author.id != 8768: if target.body_html and target.author.id != SNAPPY_ID:
x = target.body_html.count('" target="_blank" rel="nofollow noopener">') x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
x += target.body_html.count('" rel="nofollow noopener" target="_blank">') x += target.body_html.count('" rel="nofollow noopener" target="_blank">')
target.realupvotes += min(x*2, 20) target.realupvotes += min(x*2, 20)