diff --git a/files/helpers/const.py b/files/helpers/const.py index c38d0e980..c8c6e22db 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -1665,10 +1665,18 @@ if SITE_NAME == 'rDrama': 'anime', 'gaybros', 'againsthateholes', + 'schizocel', 'masterbaiters', 'changelog', } + BOOSTED_HOLES_UNNERFED = { + 'space', + 'istory', + 'dino', + 'slackernews', + } + BOOSTED_USERS = { IMPASSIONATA_ID, PIZZASHILL_ID, @@ -1677,6 +1685,8 @@ if SITE_NAME == 'rDrama': 2008, #TransGirlTradWife } + BOOSTED_USERS_EXCLUDED = {8768, 5214, 12719, 3402} + 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 fc48c33f9..74922b2c7 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -147,10 +147,10 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): mul = 1 if target.author.progressivestack or target.author.id in BOOSTED_USERS: mul = 2 - elif cls == Submission and target.author.id not in {8768, 5214, 12719, 3402}: + elif cls == Submission and target.author.id not in BOOSTED_USERS_EXCLUDED: if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES: mul = 2 - elif target.sub and target.sub not in ('space','istory','dino','slackernews'): + elif target.sub and target.sub not in BOOSTED_HOLES_UNNERFED: mul = 0.7 elif not target.sub and target.body_html: x = target.body_html.count('" target="_blank" rel="nofollow noopener">')