Extend special API comment display to bussy-bot.
parent
e6d008e455
commit
1eaebd2ea1
|
@ -409,7 +409,7 @@ SNAPPY_ID = 2
|
|||
LONGPOSTBOT_ID = 3
|
||||
ZOZBOT_ID = 4
|
||||
BASEDBOT_ID = 0
|
||||
BBBB_ID = 0
|
||||
PRIVILEGED_USER_BOTS = ()
|
||||
|
||||
SCHIZO_ID = 0
|
||||
KIPPY_ID = 0
|
||||
|
@ -482,7 +482,7 @@ if SITE.startswith('rdrama.'):
|
|||
SNAPPY_ID = 261
|
||||
LONGPOSTBOT_ID = 1832
|
||||
ZOZBOT_ID = 1833
|
||||
BBBB_ID = 12125
|
||||
PRIVILEGED_USER_BOTS = (12125, 16049)
|
||||
|
||||
SCHIZO_ID = 8494
|
||||
KIPPY_ID = 7150
|
||||
|
|
|
@ -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.")
|
||||
|
||||
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))
|
||||
|
||||
execute_antispam_comment_check(body, v)
|
||||
|
|
|
@ -45,7 +45,7 @@ def vote_info_get(v, link):
|
|||
def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||
if new == "-1" and DISABLE_DOWNVOTES: abort(403)
|
||||
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)
|
||||
target = None
|
||||
if cls == Submission:
|
||||
|
|
Loading…
Reference in New Issue