forked from MarseyWorld/MarseyWorld
fix 500 error
parent
105e4c8291
commit
f60e526602
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue