From b126b46541a6928f1a6d0c0a33362060395b91cf Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 13 Jan 2024 07:03:03 +0200 Subject: [PATCH] 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 --- files/routes/votes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index bd94c8a11..be9b3e343 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -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