From 876f1d48f1fcdf8ca1911a8af31d07ff4cfc6d45 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 9 Nov 2022 23:28:11 +0200 Subject: [PATCH] extend BOOSTED_USERS to comments --- files/routes/votes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index cb30ba1af0..3e1b13a9b2 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -142,10 +142,10 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): target.realupvotes = get_vote_count(0, True) # first arg is ignored here mul = 1 - if target.author.progressivestack: + if target.author.progressivestack or target.author.id in BOOSTED_USERS: mul = 2 elif cls == Submission: - if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES or target.author.id in BOOSTED_USERS: #Anti-chud measure + if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES: mul = 2 elif target.sub: mul = 0.7