From c5ace85f9ba2183d1850d7fa8375ab51a89af0db Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 26 May 2022 17:57:24 +0200 Subject: [PATCH] fsd --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index c1c1988c69..29046f2ff2 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1118,7 +1118,7 @@ def submit_post(v, sub=None): if blackjack and any(i in f'{post.body} {post.title} {post.url}'.lower() for i in blackjack.split()): v.shadowbanned = 'AutoJanny' g.db.add(v) - send_repeatable_notification(CARP_ID, post.permalink) + if CARP_ID: send_repeatable_notification(CARP_ID, post.permalink) if v and v.admin_level > 2: for option in bet_options: