From db53c1f666df8c2199e04fed79e3da4f57c903f0 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 31 Mar 2022 17:14:19 +0200 Subject: [PATCH] fsd --- 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 a93b825d4..e032ec7f6 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -360,7 +360,7 @@ def api_comment(v): if parent.author.any_block_exists(v) and v.admin_level < 2: return {"error": "You can't reply to users who have blocked you, or users you have blocked."}, 403 - is_bot = bool(request.headers.get("Authorization")) + is_bot = bool(request.headers.get("Authorization")) or v.id == SNAPPY_ID if '!slots' not in body.lower() and '!blackjack' not in body.lower() and '!wordle' not in body.lower() and parent_post.id not in ADMIGGERS and not is_bot and not v.marseyawarded and AGENDAPOSTER_PHRASE not in body.lower() and len(body) > 10: now = int(time.time()) diff --git a/files/routes/posts.py b/files/routes/posts.py index 9e833d7a3..30673322b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1063,7 +1063,7 @@ def submit_post(v, sub=None): over_18=bool(request.values.get("over_18","")), new=bool(request.values.get("new","")), app_id=v.client.application.id if v.client else None, - is_bot = request.headers.get("Authorization"), + is_bot = bool(request.headers.get("Authorization")) or v.id == SNAPPY_ID, url=url, body=body[:20000], body_html=body_html,