From f60e5266024b3e58fd0c1b1c43d942ef0bb21774 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 25 Dec 2023 01:29:15 +0200 Subject: [PATCH] fix 500 error --- 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 a595c261f..e26d7bb0b 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -138,7 +138,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 target.hole in {'sandshit', 'slavshit'}: + elif cls == Post and target.hole in {'sandshit', 'slavshit'}: target.realupvotes = target.upvotes + target.downvotes else: target.realupvotes = target.upvotes - target.downvotes