boost all domains with "community" in them
parent
a9e02098e7
commit
2217bd6f3e
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue