From e386caf581e6444cd9c67b8559e6412b7738c47f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 19 Dec 2022 23:52:06 +0200 Subject: [PATCH] Revert "generate mod log item for removals" This reverts commit e4d4c4798df87835e1ddc8f973fc57368fb1d862. --- files/helpers/actions.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index bb19c8a75..4f489595d 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -413,22 +413,8 @@ def execute_blackjack(v, target, body, type): v.ban_reason = "Blackjack" g.db.add(v) - elif type == 'submission': + elif hasattr(target, 'is_banned'): target.is_banned = True - ma = ModAction( - kind="ban_post", - user_id=AUTOJANNY_ID, - _note='reason: "Blackjack"' - ) - g.db.add(ma) - elif type in ('comment', 'message', 'modmail'): - target.is_banned = True - ma = ModAction( - kind="ban_comment", - user_id=AUTOJANNY_ID, - _note='reason: "Blackjack"' - ) - g.db.add(ma) if type == 'submission': extra_info = target.permalink