forked from rDrama/rDrama
1
0
Fork 0

boost all of stackoverflow and stackexchange subdomains

master
Aevann 2024-04-21 14:28:27 +02:00
parent 04331a6619
commit 0561317341
2 changed files with 1 additions and 2 deletions

View File

@ -164,7 +164,6 @@ BOOSTED_SITES = {
'metafilter.com', 'metafilter.com',
'sqwok.im', 'sqwok.im',
'thelayoff.com', 'thelayoff.com',
'stackoverflow.com',
'serverfault.com', 'serverfault.com',
'superuser.com', 'superuser.com',
'goodreads.com', 'goodreads.com',

View File

@ -170,7 +170,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
elif SITE == 'rdrama.net' and cls == Post: elif SITE == 'rdrama.net' and cls == Post:
if target.hole == 'chudrama': if target.hole == 'chudrama':
mul = 3 mul = 3
elif any(i in target.domain for i in ('forum','community','chan','lemmy','mastodon')) \ elif any(i in target.domain for i in ('forum','community','chan','lemmy','mastodon','stackoverflow.com','stackexchange.com')) \
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 BOOSTED_HOLES: elif target.hole in BOOSTED_HOLES: