fix prev commit

pull/142/head
Aevann 2023-03-31 22:19:35 +02:00
parent 231ecef5f2
commit 21d0adae54
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):
mul = 2
if target.body_html and target.sub != 'mnn' and target.author.id != 8768:
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
x += target.body_html.count('<a href="/images/')
x += target.body_html.count('" rel="nofollow noopener" target="_blank">')
target.realupvotes += min(x*2, 20)
mul += min(x/10, 1)