fix 500 erro

master
Aevann1 2022-11-07 02:55:12 +02:00
parent 998d3456d1
commit e3fb1b8871
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
if target.author.progressivestack or (cls == Submission and (target.domain.endswith('.win') or target.domain in BOOSTED_SITES)):
target.realupvotes *= 2
if target.sub and target.sub not in ('space', 'istory', 'dinos', 'furry', 'anime', 'slackernews', 'gaybros', 'againsthateholes', 'femboy'):
if cls == Submission and target.sub and target.sub not in ('space', 'istory', 'dinos', 'furry', 'anime', 'slackernews', 'gaybros', 'againsthateholes', 'femboy'):
target.realupvotes = int(target.realupvotes * 0.7)
g.db.add(target)