forked from rDrama/rDrama
1
0
Fork 0

change lemmy boosting

master
Aevann 2023-07-13 14:22:22 +03:00
parent b2b79f8076
commit 75d3eea134
2 changed files with 4 additions and 12 deletions

View File

@ -353,24 +353,15 @@ if SITE_NAME == 'rDrama':
'livefilter.com',
'sift.quest',
##lemmy
'lemmy.world',
'lemmy.ml',
'beehaw.org',
'sh.itjust.works',
'lemm.ee',
'feddit.de',
'lemmynsfw.com',
'lemmy.fmhy.ml',
'lemmy.ca',
'programming.dev',
'lemmy.dbzer0.com',
'lemmy.blahaj.zone',
'lemmy.one',
'lemmy.sdf.org',
'discuss.tchncs.de',
'lemmygrad.ml',
'exploding-heads.com',
#+All sites with .win TLD
#+All sites with 'lemmy' in the domain
#misc
'cinchnews.com',

View File

@ -171,8 +171,9 @@ 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 {CARP_ID, SCHIZO_ID}):
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 (target.domain in BOOSTED_SITES and not target.url.startswith('/'))):
if (target.domain.endswith('.win')
or 'forum' in target.domain or 'chan' in target.domain or 'lemmy' in target.domain
or (target.domain in BOOSTED_SITES and not target.url.startswith('/'))):
mul = 2
elif target.sub in STEALTH_HOLES:
mul = 2