use constant for BBBB_ID instead of 12125

master
justcool393 2022-10-09 07:03:21 -07:00
parent a9064e7828
commit d6f4e20f7d
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ def comment(v):
if parent.author.any_block_exists(v) and v.admin_level < PERMS['POST_COMMENT_MODERATION']:
return {"error": "You can't reply to users who have blocked you or users that you have blocked."}, 403
is_bot = v.id != 12125 and (bool(request.headers.get("Authorization")) or (SITE == 'pcmemes.net' and v.id == SNAPPY_ID))
is_bot = v.id != BBBB_ID and (bool(request.headers.get("Authorization")) or (SITE == 'pcmemes.net' and v.id == SNAPPY_ID))
if len(body) > 50:
now = int(time.time())

View File

@ -907,7 +907,7 @@ def submit_post(v, sub=None):
if embed and len(embed) > 1500: embed = None
is_bot = v.id != 12125 and bool(request.headers.get("Authorization")) or (SITE == 'pcmemes.net' and v.id == SNAPPY_ID)
is_bot = v.id != BBBB_ID and bool(request.headers.get("Authorization")) or (SITE == 'pcmemes.net' and v.id == SNAPPY_ID)
if request.values.get("ghost") and v.coins >= 100:
v.coins -= 100