forked from rDrama/rDrama
1
0
Fork 0

apply the realupvotes manipulation logic in rdrama only, since its the only site that uses realupvotes anyway

master
Aevann1 2022-11-07 03:35:46 +02:00
parent 5111eb7ca4
commit b526f6cc21
1 changed files with 7 additions and 5 deletions

View File

@ -137,6 +137,8 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
target.upvotes = get_vote_count(1, False)
target.downvotes = get_vote_count(-1, False)
if SITE_NAME == 'rDrama':
target.realupvotes = get_vote_count(0, True) # first arg is ignored here
if target.author.progressivestack or (cls == Submission and (target.domain.endswith('.win') or target.domain in BOOSTED_SITES)) or (cls == Submission and not target.sub and len(target.body) > 5000):