first
This commit is contained in:
parent
8e3e7e1d3d
commit
be13e954bd
6 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue