From e3fb1b88717bd0e6d0ac7b14216ff9413d940a7e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 7 Nov 2022 02:55:12 +0200 Subject: [PATCH] fix 500 erro --- files/routes/votes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index 7ff6db1fb..a3259b573 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -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)