fix 500 error

pull/78/head
Aevann1 2022-12-16 22:08:46 +02:00
parent dd60bff20e
commit ae51fe812a
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
target.upvotes = get_vote_count(1, False)
target.downvotes = get_vote_count(-1, False)
if SITE == 'rdrama.net':
if SITE == 'rdrama.net' and target.realupvotes != 1:
target.realupvotes = get_vote_count(0, True) # first arg is ignored here
mul = 1