From 4a1359713f7b40f152776a72df2d0443f5bc2fc7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 28 Jun 2022 04:00:28 +0200 Subject: [PATCH] use the variable "poll_bots" --- 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 f76583431..dcc0939c2 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -138,7 +138,7 @@ def api_vote_comment(comment_id, new, v): comment = get_comment(comment_id) - if comment.author_id in {AUTOPOLLER_ID,AUTOBETTER_ID,AUTOCHOICE_ID}: return {"error": "forbidden."}, 403 + if comment.author_id in poll_bots: return {"error": "forbidden."}, 403 existing = g.db.query(CommentVote).filter_by(user_id=v.id, comment_id=comment.id).one_or_none()