fix 500 error

master
Aevann 2023-12-25 01:29:15 +02:00
parent 105e4c8291
commit f60e526602
1 changed files with 1 additions and 1 deletions

View File

@ -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