forked from MarseyWorld/MarseyWorld
allow @bbbb to vote
parent
240ffdb675
commit
2a95c25675
|
@ -161,6 +161,7 @@ SNAPPY_ID = 2
|
||||||
LONGPOSTBOT_ID = 3
|
LONGPOSTBOT_ID = 3
|
||||||
ZOZBOT_ID = 4
|
ZOZBOT_ID = 4
|
||||||
BASEDBOT_ID = 0
|
BASEDBOT_ID = 0
|
||||||
|
BBBB_ID = 0
|
||||||
|
|
||||||
SCHIZO_ID = 0
|
SCHIZO_ID = 0
|
||||||
A_ID = 0
|
A_ID = 0
|
||||||
|
@ -202,6 +203,7 @@ if SITE in {'rdrama.net', 'devrama.xyz', 'deuxrama.net'}:
|
||||||
SNAPPY_ID = 261
|
SNAPPY_ID = 261
|
||||||
LONGPOSTBOT_ID = 1832
|
LONGPOSTBOT_ID = 1832
|
||||||
ZOZBOT_ID = 1833
|
ZOZBOT_ID = 1833
|
||||||
|
BBBB_ID = 12125
|
||||||
|
|
||||||
SCHIZO_ID = 8494
|
SCHIZO_ID = 8494
|
||||||
A_ID = 1230
|
A_ID = 1230
|
||||||
|
|
|
@ -67,7 +67,7 @@ def api_vote_post(post_id, new, v):
|
||||||
|
|
||||||
if new not in ["-1", "0", "1"]: abort(400)
|
if new not in ["-1", "0", "1"]: abort(400)
|
||||||
|
|
||||||
if request.headers.get("Authorization"): abort(403)
|
if request.headers.get("Authorization") and v.id != BBBB_ID: abort(403)
|
||||||
|
|
||||||
new = int(new)
|
new = int(new)
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ def api_vote_comment(comment_id, new, v):
|
||||||
|
|
||||||
if new not in ["-1", "0", "1"]: abort(400)
|
if new not in ["-1", "0", "1"]: abort(400)
|
||||||
|
|
||||||
if request.headers.get("Authorization"): abort(403)
|
if request.headers.get("Authorization") and v.id != BBBB_ID: abort(403)
|
||||||
|
|
||||||
new = int(new)
|
new = int(new)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue