This commit is contained in:
Aevann1 2022-04-23 00:48:01 +02:00
parent 6de5cc7264
commit 15d77234e6
4 changed files with 8 additions and 8 deletions

View file

@ -14,7 +14,7 @@ def api_flag_post(pid, v):
reason = request.values.get("reason", "").strip()
if blackjack and blackjack in reason.lower():
if blackjack and any(i in reason.lower() for i in blackjack.split()):
v.shadowbanned = 'AutoJanny'
send_repeatable_notification(CARP_ID, f"reports on {post.permalink}")
@ -68,7 +68,7 @@ def api_flag_comment(cid, v):
reason = request.values.get("reason", "").strip()
if blackjack and blackjack in reason.lower():
if blackjack and any(i in reason.lower() for i in blackjack.split()):
v.shadowbanned = 'AutoJanny'
send_repeatable_notification(CARP_ID, f"reports on {comment.permalink}")