forked from rDrama/rDrama
remove hole nerf
parent
6acd896967
commit
4640abed4b
|
@ -1675,14 +1675,6 @@ if SITE_NAME == 'rDrama':
|
||||||
'changelog',
|
'changelog',
|
||||||
}
|
}
|
||||||
|
|
||||||
UNNERFED_HOLES = {
|
|
||||||
'space',
|
|
||||||
'istory',
|
|
||||||
'dino',
|
|
||||||
'slackernews',
|
|
||||||
'schizocel',
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOSTED_USERS = {
|
BOOSTED_USERS = {
|
||||||
IMPASSIONATA_ID,
|
IMPASSIONATA_ID,
|
||||||
PIZZASHILL_ID,
|
PIZZASHILL_ID,
|
||||||
|
|
|
@ -150,8 +150,6 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
elif cls == Submission:
|
elif cls == Submission:
|
||||||
if target.domain.endswith('.win') or (target.domain in BOOSTED_SITES and not target.url.startswith('/')) or target.sub in BOOSTED_HOLES:
|
if target.domain.endswith('.win') or (target.domain in BOOSTED_SITES and not target.url.startswith('/')) or target.sub in BOOSTED_HOLES:
|
||||||
mul = 2
|
mul = 2
|
||||||
elif target.sub and target.sub not in UNNERFED_HOLES:
|
|
||||||
mul = 0.7
|
|
||||||
elif not target.sub and target.body_html and target.author.id not in BOOSTED_USERS_EXCLUDED:
|
elif not target.sub and target.body_html and target.author.id not in BOOSTED_USERS_EXCLUDED:
|
||||||
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
|
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
|
||||||
x += target.body_html.count('<a href="/images/')
|
x += target.body_html.count('<a href="/images/')
|
||||||
|
|
Loading…
Reference in New Issue