forked from rDrama/rDrama
Un-nerf schizohole in rankings.
parent
01ce9b267d
commit
f5563900ae
|
@ -1665,10 +1665,18 @@ if SITE_NAME == 'rDrama':
|
||||||
'anime',
|
'anime',
|
||||||
'gaybros',
|
'gaybros',
|
||||||
'againsthateholes',
|
'againsthateholes',
|
||||||
|
'schizocel',
|
||||||
'masterbaiters',
|
'masterbaiters',
|
||||||
'changelog',
|
'changelog',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOSTED_HOLES_UNNERFED = {
|
||||||
|
'space',
|
||||||
|
'istory',
|
||||||
|
'dino',
|
||||||
|
'slackernews',
|
||||||
|
}
|
||||||
|
|
||||||
BOOSTED_USERS = {
|
BOOSTED_USERS = {
|
||||||
IMPASSIONATA_ID,
|
IMPASSIONATA_ID,
|
||||||
PIZZASHILL_ID,
|
PIZZASHILL_ID,
|
||||||
|
@ -1677,6 +1685,8 @@ if SITE_NAME == 'rDrama':
|
||||||
2008, #TransGirlTradWife
|
2008, #TransGirlTradWife
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOSTED_USERS_EXCLUDED = {8768, 5214, 12719, 3402}
|
||||||
|
|
||||||
IMAGE_FORMATS = ['png','gif','jpg','jpeg','webp']
|
IMAGE_FORMATS = ['png','gif','jpg','jpeg','webp']
|
||||||
VIDEO_FORMATS = ['mp4','webm','mov','avi','mkv','flv','m4v','3gp']
|
VIDEO_FORMATS = ['mp4','webm','mov','avi','mkv','flv','m4v','3gp']
|
||||||
AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac']
|
AUDIO_FORMATS = ['mp3','wav','ogg','aac','m4a','flac']
|
||||||
|
|
|
@ -147,10 +147,10 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
mul = 1
|
mul = 1
|
||||||
if target.author.progressivestack or target.author.id in BOOSTED_USERS:
|
if target.author.progressivestack or target.author.id in BOOSTED_USERS:
|
||||||
mul = 2
|
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:
|
if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES:
|
||||||
mul = 2
|
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
|
mul = 0.7
|
||||||
elif not target.sub and target.body_html:
|
elif not target.sub and target.body_html:
|
||||||
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
|
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
|
||||||
|
|
Loading…
Reference in New Issue