forked from rDrama/rDrama
1
0
Fork 0

extend BOOSTED_USERS to comments

master
Aevann1 2022-11-09 23:28:11 +02:00
parent c066227d2b
commit 876f1d48f1
1 changed files with 2 additions and 2 deletions

View File

@ -142,10 +142,10 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
target.realupvotes = get_vote_count(0, True) # first arg is ignored here
mul = 1
if target.author.progressivestack:
if target.author.progressivestack or target.author.id in BOOSTED_USERS:
mul = 2
elif cls == Submission:
if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES or target.author.id in BOOSTED_USERS: #Anti-chud measure
if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES:
mul = 2
elif target.sub:
mul = 0.7