forked from rDrama/rDrama
dont count downvotes in ranking in sandshit and slavshit to prevent objectively bad posts from rising to the top like this one https://watchpeopledie.tv/h/slavshit/post/113566/total-female-death
parent
f911b1d375
commit
b126b46541
|
@ -139,7 +139,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||||
if SITE_NAME == 'rDrama':
|
if SITE_NAME == 'rDrama':
|
||||||
target.realupvotes = get_vote_count(0, True) # first arg is ignored here
|
target.realupvotes = get_vote_count(0, True) # first arg is ignored here
|
||||||
elif cls == Post and target.hole in {'sandshit', 'slavshit'}:
|
elif cls == Post and target.hole in {'sandshit', 'slavshit'}:
|
||||||
target.realupvotes = target.upvotes + target.downvotes
|
target.realupvotes = target.upvotes
|
||||||
else:
|
else:
|
||||||
target.realupvotes = target.upvotes - target.downvotes
|
target.realupvotes = target.upvotes - target.downvotes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue