remove hole nerf

pull/2/head
Aevann1 2022-11-22 22:25:48 +02:00
parent 6acd896967
commit 4640abed4b
2 changed files with 0 additions and 10 deletions

View File

@ -1675,14 +1675,6 @@ if SITE_NAME == 'rDrama':
'changelog',
}
UNNERFED_HOLES = {
'space',
'istory',
'dino',
'slackernews',
'schizocel',
}
BOOSTED_USERS = {
IMPASSIONATA_ID,
PIZZASHILL_ID,

View File

@ -150,8 +150,6 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
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:
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:
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
x += target.body_html.count('<a href="/images/')