This commit is contained in:
Aevann1 2021-10-26 23:10:31 +02:00
parent 8e3e7e1d3d
commit be13e954bd
6 changed files with 6 additions and 6 deletions

View file

@ -62,7 +62,7 @@ def api_vote_post(post_id, new, v):
if new not in ["-1", "0", "1"]: abort(400)
if request.headers.get("X-User-Type","") == "Bot": abort(403)
if request.headers.get("Authorization"): abort(403)
new = int(new)
@ -130,7 +130,7 @@ def api_vote_comment(comment_id, new, v):
if new not in ["-1", "0", "1"]: abort(400)
if request.headers.get("X-User-Type","") == "Bot": abort(403)
if request.headers.get("Authorization"): abort(403)
new = int(new)