use the variable "poll_bots"

master
Aevann1 2022-06-28 04:00:28 +02:00
parent cbbd361197
commit 4a1359713f
1 changed files with 1 additions and 1 deletions

View File

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