From 563ced8707fe9e5ecd78d36a7e8af0444793c4ab Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 12 Mar 2023 11:10:08 +0200 Subject: [PATCH] boost all sites with "chan" in the domain --- files/helpers/config/const.py | 6 ------ files/routes/votes.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index ea78b15bd..5d2f08429 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -204,15 +204,11 @@ if SITE_NAME == 'rDrama': 'odysee.com', #4chan-like - '4chan.org', - 'boards.4channel.org', - 'boards.4chan.org', 'archive.4plebs.org', 'lolcow.farm', '8kun.top', 'soyjak.party', 'crystal.cafe', - 'choachan.cafe', #forums 'kiwifarms.net', @@ -290,7 +286,6 @@ if SITE_NAME == 'rDrama': 'wolfballs.com', 'dojo.press', 'livefilter.com', - 'mainchan.com', 'lesswrong.com', 'forum.porpl.net', @@ -313,7 +308,6 @@ if SITE_NAME == 'rDrama': 'metafilter.com', 'sqwok.im', 'thelayoff.com', - 'stackexchange.com', 'stackoverflow.com', 'serverfault.com', 'superuser.com', diff --git a/files/routes/votes.py b/files/routes/votes.py index 13cf73030..36445d640 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -170,7 +170,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): elif target.author.progressivestack or (target.author.admin_level and target.author.id not in {AEVANN_ID, CARP_ID}): mul = 2 elif SITE == 'rdrama.net' and cls == Submission and target.author.id not in {8768,3402,10202}: - if (target.domain.endswith('.win') or 'forum' in target.domain + if (target.domain.endswith('.win') or 'forum' in target.domain or 'chan' in target.domain or (target.domain in BOOSTED_SITES and not target.url.startswith('/')) or target.sub in BOOSTED_HOLES): mul = 2