From d85ac23c3c239397aaf0b9658f27ccde45eb2ce4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 9 Nov 2022 22:53:20 +0200 Subject: [PATCH] add BOOSTED_USERS --- files/helpers/const.py | 4 ++++ files/routes/votes.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index f78568d37d..bedbe0245e 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -1614,6 +1614,10 @@ BOOSTED_HOLES = { 'masterbaiters', } +BOOSTED_USERS = { + 5800, #Impassionata +} + IMAGE_FORMATS = ['png','gif','jpg','jpeg','webp'] VIDEO_FORMATS = ['mp4','webm','mov','avi','mkv','flv','m4v','3gp'] AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac'] diff --git a/files/routes/votes.py b/files/routes/votes.py index 59ca89d0e9..c66c63e7cb 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -145,7 +145,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): if target.author.progressivestack: mul = 2 elif cls == Submission: - if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES: + if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES or target.author.id in BOOSTED_USERS: mul = 2 elif target.sub: mul = 0.7