forked from rDrama/rDrama
boost all sites with "chan" in the domain
parent
93c38657f3
commit
563ced8707
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue