From 6778ef14adbe9fe810e4f5c8dad68e1122cfd637 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 30 Oct 2022 20:27:36 +0200 Subject: [PATCH] diversity is our strength --- files/helpers/const.py | 19 ++++++++++++++++++- files/routes/votes.py | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index d3de290f1..df74696e2 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -1390,7 +1390,24 @@ BOOSTED_SITES = { 'incels.is', 'groups.google.com', 't.me', - 'web.telegram.org' + 'web.telegram.org', + 'news.ycombinator.com', + 'tigerdroppings.com', + 'instagram.com', + 'facebook.com', + 'twitch.tv', + 'tiktok.com', + 'vm.tiktok.com', + 'github.com', + 'boards.4channel.org', + 'boards.4chan.org', + 'archive.4plebs.org', + 'lipstickalley.com', + 'resetera.com', + 'steamcommunity.com', + 'nairaland.com', + 'marsey.club', + 'odysee.com', } IMAGE_FORMATS = ('webp','jpg','jpeg','png','gif','gifv','tif','tiff') diff --git a/files/routes/votes.py b/files/routes/votes.py index 1a5335599..32c7f6f65 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -139,7 +139,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): 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') or target.domain.endswith('.win') or target.domain in BOOSTED_SITES)): + if target.author.progressivestack or (cls == Submission and (target.sub in ('space', 'istory', 'dinos', 'furry', 'anime') or target.domain.endswith('.win') or target.domain in BOOSTED_SITES)): target.realupvotes *= 2 g.db.add(target) return "", 204