Un-nerf schizohole in rankings.

pull/2/head
Snakes 2022-11-19 21:17:51 -05:00
parent 01ce9b267d
commit f5563900ae
Signed by: Snakes
GPG Key ID: E745A82778055C7E
2 changed files with 12 additions and 2 deletions

View File

@ -1665,10 +1665,18 @@ if SITE_NAME == 'rDrama':
'anime',
'gaybros',
'againsthateholes',
'schizocel',
'masterbaiters',
'changelog',
}
BOOSTED_HOLES_UNNERFED = {
'space',
'istory',
'dino',
'slackernews',
}
BOOSTED_USERS = {
IMPASSIONATA_ID,
PIZZASHILL_ID,
@ -1677,6 +1685,8 @@ if SITE_NAME == 'rDrama':
2008, #TransGirlTradWife
}
BOOSTED_USERS_EXCLUDED = {8768, 5214, 12719, 3402}
IMAGE_FORMATS = ['png','gif','jpg','jpeg','webp']
VIDEO_FORMATS = ['mp4','webm','mov','avi','mkv','flv','m4v','3gp']
AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac']

View File

@ -147,10 +147,10 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
mul = 1
if target.author.progressivestack or target.author.id in BOOSTED_USERS:
mul = 2
elif cls == Submission and target.author.id not in {8768, 5214, 12719, 3402}:
elif cls == Submission and target.author.id not in BOOSTED_USERS_EXCLUDED:
if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES:
mul = 2
elif target.sub and target.sub not in ('space','istory','dino','slackernews'):
elif target.sub and target.sub not in BOOSTED_HOLES_UNNERFED:
mul = 0.7
elif not target.sub and target.body_html:
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')