allow @bbbb to vote

master
Aevann1 2022-07-12 21:23:37 +02:00
parent 240ffdb675
commit 2a95c25675
2 changed files with 4 additions and 2 deletions

View File

@ -161,6 +161,7 @@ SNAPPY_ID = 2
LONGPOSTBOT_ID = 3
ZOZBOT_ID = 4
BASEDBOT_ID = 0
BBBB_ID = 0
SCHIZO_ID = 0
A_ID = 0
@ -202,6 +203,7 @@ if SITE in {'rdrama.net', 'devrama.xyz', 'deuxrama.net'}:
SNAPPY_ID = 261
LONGPOSTBOT_ID = 1832
ZOZBOT_ID = 1833
BBBB_ID = 12125
SCHIZO_ID = 8494
A_ID = 1230

View File

@ -67,7 +67,7 @@ def api_vote_post(post_id, new, v):
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)
@ -137,7 +137,7 @@ def api_vote_comment(comment_id, new, v):
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)