From d6f4e20f7d61255eba56e87b00330cb533450ed4 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 9 Oct 2022 07:03:21 -0700 Subject: [PATCH] use constant for BBBB_ID instead of 12125 --- files/routes/comments.py | 2 +- files/routes/posts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 3bb7bdf91..547a34af8 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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()) diff --git a/files/routes/posts.py b/files/routes/posts.py index c057028f0..1a21a7191 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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