From acb8719236f4b7dcb4b8cd0660bdcb90d4bfb8b8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 7 Nov 2022 02:46:48 +0200 Subject: [PATCH] slightly throttle posts in most holes to account for follower pings giving them an unfair advantage over unholed posts --- files/routes/votes.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index d52df0b4c..f8f95ad40 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -138,9 +138,13 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): target.upvotes = get_vote_count(1, False) target.downvotes = get_vote_count(-1, False) target.realupvotes = get_vote_count(0, True) # first arg is ignored here - - if target.author.progressivestack or (cls == Submission and (target.sub in ('space', 'istory', 'dinos', 'furry', 'anime', 'slackernews', 'gaybros', 'againsthateholes', 'femboy') or target.domain.endswith('.win') or target.domain in BOOSTED_SITES)): + + 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'): + target.realupvotes = int(target.realupvotes * 0.7) + g.db.add(target) return "", 204