moved boosted sites to const.py

master
Aevann1 2022-10-30 00:53:42 +02:00
parent eb2adf4dc2
commit c4063f081c
2 changed files with 48 additions and 48 deletions

View File

@ -1339,3 +1339,50 @@ forced_hats = {
}
EMAIL_REGEX_PATTERN = '[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9.-]{2,63}\.[A-Za-z]{2,63}'
BOOSTED_SITES = {
'rdrama.net',
'pcmemes.net',
'watchpeopledie.tv',
'quora.com',
'cumtown.org',
'notabug.io',
'talk.lol',
'discussions.app',
'gab.com',
'kiwifarms.net',
'gettr.com',
'scored.co',
'parler.com',
'bitchute.com',
'4chan.org',
'givesendgo.com',
'thepinkpill.com',
'ovarit.com',
'rdrama.cc',
'lolcow.farm',
'truthsocial.com',
'rumble.com',
'saidit.net',
'kiwifarms.cc',
'8kun.top',
'goyimtv.tv',
'poal.co',
'stormfront.org',
'arete.network',
'poa.st',
'lbry.com',
'crystal.cafe',
'tribel.com',
'mstdn.social',
'mastodon.online',
'steemit.com',
'hexbear.net',
'raddle.me',
'lemmy.ml',
'bluelight.org',
'incels.is',
'groups.google.com',
't.me',
'web.telegram.org'
}

View File

@ -139,54 +139,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
target.downvotes = get_vote_count(-1, False)
target.realupvotes = get_vote_count(0, True) # first arg is ignored here
boost_sites = {
'rdrama.net',
'pcmemes.net',
'watchpeopledie.tv',
'quora.com',
'cumtown.org',
'notabug.io',
'talk.lol',
'discussions.app',
'gab.com',
'kiwifarms.net',
'gettr.com',
'scored.co',
'parler.com',
'bitchute.com',
'4chan.org',
'givesendgo.com',
'thepinkpill.com',
'ovarit.com',
'rdrama.cc',
'lolcow.farm',
'truthsocial.com',
'rumble.com',
'saidit.net',
'kiwifarms.cc',
'8kun.top',
'goyimtv.tv',
'poal.co',
'stormfront.org',
'arete.network',
'poa.st',
'lbry.com',
'crystal.cafe',
'tribel.com',
'mstdn.social',
'mastodon.online',
'steemit.com',
'hexbear.net',
'raddle.me',
'lemmy.ml',
'bluelight.org',
'incels.is',
'groups.google.com',
't.me',
'web.telegram.org'
}
if target.author.progressivestack or (cls == Submission and (target.sub in ('space', 'istory', 'dinos') or target.domain.endswith('.win') or target.domain in boost_sites)):
if target.author.progressivestack or (cls == Submission and (target.sub in ('space', 'istory', 'dinos') or target.domain.endswith('.win') or target.domain in BOOSTED_SITES)):
target.realupvotes *= 2
g.db.add(target)
return "", 204