From af7fc01ff2b1852b9ebe448385fd03060a12a575 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 23 Aug 2023 02:39:15 +0300 Subject: [PATCH] do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4850444#context --- files/helpers/config/boosted_sites.py | 5 ++--- files/routes/votes.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/files/helpers/config/boosted_sites.py b/files/helpers/config/boosted_sites.py index b6bfbae01..2e5df8e16 100644 --- a/files/helpers/config/boosted_sites.py +++ b/files/helpers/config/boosted_sites.py @@ -24,11 +24,10 @@ BOOSTED_SITES = { 'blacktwitterapp.com', 'trp.red', ##fediverse + #'all sites with the word "mastodon" in the domain', 'kiwifarms.cc', 'freespeechextremist.com' 'mstdn.social', - 'mastodon.social', - 'mastodon.online', 'poa.st', 'shitposter.club', 'sneed.social', @@ -80,7 +79,7 @@ BOOSTED_SITES = { #nested-comments #'all sites with .win TLD', - #'all sites with the word 'lemmy' in the domain', + #'all sites with the word "lemmy" in the domain', 'rdrama.net', 'funnyjunk.com', 'news.ycombinator.com', diff --git a/files/routes/votes.py b/files/routes/votes.py index e2d593e58..4d0bded50 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -131,7 +131,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): 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 '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('/'))): mul = 2 elif target.sub in STEALTH_HOLES or target.sub in {'countryclub', 'highrollerclub'}: