remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-11-12 14:10:32 +02:00
parent ccca9a7684
commit 0f9bde0d7b
1 changed files with 3 additions and 1 deletions

View File

@ -150,7 +150,9 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
elif target.sub and target.sub not in ('space','istory','dino','slackernews'):
mul = 0.7
elif not target.sub and len(target.body) > 2000:
mul = 1 + len(target.body)/5000
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
x += target.body_html.count('<a href="/images/')
mul = 1 + x/20
mul = min(mul, 2)
target.realupvotes *= mul