Update votes.py

master
Aevann1 2022-11-16 21:00:18 +02:00 committed by GitHub
parent 0c0cad0723
commit 62ef32c9c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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