forked from rDrama/rDrama
boost all domains with "community" in them
parent
a9e02098e7
commit
2217bd6f3e
|
@ -37,7 +37,7 @@ BOOSTED_SITES = {
|
||||||
'shitpost.cloud',
|
'shitpost.cloud',
|
||||||
|
|
||||||
#forums
|
#forums
|
||||||
#'all sites with the word "forum" in the domain',
|
#'all sites with the word "forum" or "community" in the domain',
|
||||||
'kiwifarms.net',
|
'kiwifarms.net',
|
||||||
'kiwifarms.st',
|
'kiwifarms.st',
|
||||||
'onionfarms.com',
|
'onionfarms.com',
|
||||||
|
@ -47,7 +47,6 @@ BOOSTED_SITES = {
|
||||||
'thecoli.com',
|
'thecoli.com',
|
||||||
'nairaland.com',
|
'nairaland.com',
|
||||||
'resetera.com',
|
'resetera.com',
|
||||||
'steamcommunity.com',
|
|
||||||
'lipstickalley.com',
|
'lipstickalley.com',
|
||||||
'tigerdroppings.com',
|
'tigerdroppings.com',
|
||||||
'groups.google.com',
|
'groups.google.com',
|
||||||
|
@ -62,7 +61,6 @@ BOOSTED_SITES = {
|
||||||
'neogaf.com',
|
'neogaf.com',
|
||||||
'thebore.com',
|
'thebore.com',
|
||||||
'itjustbugsme.com',
|
'itjustbugsme.com',
|
||||||
'community.myfitnesspal.com',
|
|
||||||
'mumsnet.com',
|
'mumsnet.com',
|
||||||
'voy.com',
|
'voy.com',
|
||||||
'texags.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']:
|
elif target.author.progressivestack or (IS_HOMOWEEN() and target.author.zombie < 0) or target.author.admin_level >= PERMS['IS_PERMA_PROGSTACKED']:
|
||||||
mul = 2
|
mul = 2
|
||||||
elif SITE == 'rdrama.net' and cls == Post:
|
elif SITE == 'rdrama.net' and cls == Post:
|
||||||
if (target.domain.endswith('.win')
|
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 any(i in target.domain for i in ('forum','community','chan','lemmy','mastodon')) \
|
||||||
or (target.domain in BOOSTED_SITES and not target.url.startswith('/'))):
|
or (target.domain in BOOSTED_SITES and not target.url.startswith('/')):
|
||||||
mul = 2
|
mul = 2
|
||||||
elif target.hole in STEALTH_HOLES or target.hole in {'countryclub', 'highrollerclub'}:
|
elif target.hole in STEALTH_HOLES or target.hole in {'countryclub', 'highrollerclub'}:
|
||||||
mul = 2
|
mul = 2
|
||||||
|
|
Loading…
Reference in New Issue