Aevann 2023-08-23 02:39:15 +03:00
parent ed30144194
commit af7fc01ff2
2 changed files with 3 additions and 4 deletions

View File

@ -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',

View File

@ -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'}: