diff --git a/files/helpers/config/boosted_sites.py b/files/helpers/config/boosted_sites.py index d1c2cd37f..eb53341b8 100644 --- a/files/helpers/config/boosted_sites.py +++ b/files/helpers/config/boosted_sites.py @@ -37,7 +37,7 @@ BOOSTED_SITES = { 'shitpost.cloud', #forums - #'all sites with the word "forum" in the domain', + #'all sites with the word "forum" or "community" in the domain', 'kiwifarms.net', 'kiwifarms.st', 'onionfarms.com', @@ -47,7 +47,6 @@ BOOSTED_SITES = { 'thecoli.com', 'nairaland.com', 'resetera.com', - 'steamcommunity.com', 'lipstickalley.com', 'tigerdroppings.com', 'groups.google.com', @@ -62,7 +61,6 @@ BOOSTED_SITES = { 'neogaf.com', 'thebore.com', 'itjustbugsme.com', - 'community.myfitnesspal.com', 'mumsnet.com', 'voy.com', 'texags.com', diff --git a/files/routes/votes.py b/files/routes/votes.py index fac0f184d..b887d1504 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -149,9 +149,9 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): elif target.author.progressivestack or (IS_HOMOWEEN() and target.author.zombie < 0) or target.author.admin_level >= PERMS['IS_PERMA_PROGSTACKED']: mul = 2 elif SITE == 'rdrama.net' and cls == Post: - if (target.domain.endswith('.win') - or 'forum' in target.domain or 'chan' in target.domain or 'lemmy' in target.domain or 'mastodon' in target.domain - or (target.domain in BOOSTED_SITES and not target.url.startswith('/'))): + if target.domain.endswith('.win') \ + or any(i in target.domain for i in ('forum','community','chan','lemmy','mastodon')) \ + or (target.domain in BOOSTED_SITES and not target.url.startswith('/')): mul = 2 elif target.hole in STEALTH_HOLES or target.hole in {'countryclub', 'highrollerclub'}: mul = 2