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

pull/221/head
Aevann 2024-01-13 07:03:03 +02:00
parent f911b1d375
commit b126b46541
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
if SITE_NAME == 'rDrama':
target.realupvotes = get_vote_count(0, True) # first arg is ignored here
elif cls == Post and target.hole in {'sandshit', 'slavshit'}:
target.realupvotes = target.upvotes + target.downvotes
target.realupvotes = target.upvotes
else:
target.realupvotes = target.upvotes - target.downvotes