Extend special API comment display to bussy-bot.

remotes/1693176582716663532/tmp_refs/heads/watchparty
Snakes 2022-11-06 19:49:50 -05:00
parent e6d008e455
commit 1eaebd2ea1
Signed by: Snakes
GPG Key ID: E745A82778055C7E
3 changed files with 4 additions and 4 deletions

View File

@ -409,7 +409,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 PRIVILEGED_USER_BOTS = ()
SCHIZO_ID = 0 SCHIZO_ID = 0
KIPPY_ID = 0 KIPPY_ID = 0
@ -482,7 +482,7 @@ if SITE.startswith('rdrama.'):
SNAPPY_ID = 261 SNAPPY_ID = 261
LONGPOSTBOT_ID = 1832 LONGPOSTBOT_ID = 1832
ZOZBOT_ID = 1833 ZOZBOT_ID = 1833
BBBB_ID = 12125 PRIVILEGED_USER_BOTS = (12125, 16049)
SCHIZO_ID = 8494 SCHIZO_ID = 8494
KIPPY_ID = 7150 KIPPY_ID = 7150

View File

@ -216,7 +216,7 @@ def comment(v):
abort(403, "You can't reply to users who have blocked you or users that you have blocked.") abort(403, "You can't reply to users who have blocked you or users that you have blocked.")
is_bot = (v.client is not None is_bot = (v.client is not None
and v.id != BBBB_ID and v.id not in PRIVILEGED_USER_BOTS
or (SITE == 'pcmemes.net' and v.id == SNAPPY_ID)) or (SITE == 'pcmemes.net' and v.id == SNAPPY_ID))
execute_antispam_comment_check(body, v) execute_antispam_comment_check(body, v)

View File

@ -45,7 +45,7 @@ def vote_info_get(v, link):
def vote_post_comment(target_id, new, v, cls, vote_cls): def vote_post_comment(target_id, new, v, cls, vote_cls):
if new == "-1" and DISABLE_DOWNVOTES: abort(403) if new == "-1" and DISABLE_DOWNVOTES: abort(403)
if new not in ["-1", "0", "1"]: abort(400) if new not in ["-1", "0", "1"]: abort(400)
if v.client and v.id != BBBB_ID: abort(403) if v.client and v.id not in PRIVILEGED_USER_BOTS: abort(403)
new = int(new) new = int(new)
target = None target = None
if cls == Submission: if cls == Submission: