From aaa98b92905383af39579576c7c97aadf51f006a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 8 Nov 2022 12:43:53 +0200 Subject: [PATCH] sneed --- files/routes/votes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index 84ea96fca..8f925539e 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -143,10 +143,11 @@ 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 or len(target.body) > 5000 or target.sub == 'masterbaiters')): target.realupvotes *= 2 - elif cls == Submission and len(target.body) > 2000: - target.realupvotes *= 1.5 + elif cls == Submission and len(target.body) < 5000: + multipler = len(target.body)/5000 + 1 + target.realupvotes *= multipler - if cls == Submission and 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', 'masterbaiters'): target.realupvotes *= 0.7