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: