From ef4cb46be79b0d020fb143df11021affbd5d8293 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 9 Dec 2022 19:11:53 +0200 Subject: [PATCH] fix voting --- 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 07ee5e453..a6cdebe78 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -173,7 +173,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): if target.author.progressivestack: mul = 2 if cls == Submission: - if (target.domain.endswith('.win') or 'forum' in domain + if (target.domain.endswith('.win') or 'forum' in target.domain or (target.domain in BOOSTED_SITES and not target.url.startswith('/')) or target.sub in BOOSTED_HOLES): mul = 2