From 6de6f3d1897d1dc1261b717b8699e6e866e5a08f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 30 Jul 2021 07:54:18 +0200 Subject: [PATCH] df --- drama/routes/votes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drama/routes/votes.py b/drama/routes/votes.py index f9db252257..8310d49810 100644 --- a/drama/routes/votes.py +++ b/drama/routes/votes.py @@ -120,6 +120,8 @@ def api_vote_comment(comment_id, new, v): new = int(new) + if isinstance(comment_id, str): comment_id = int(comment_id, 36) + comment = get_comment(comment_id) # check for existing vote