Revert "generate mod log item for removals"

This reverts commit e4d4c4798d.
master
Aevann1 2022-12-19 23:52:06 +02:00
parent e4d4c4798d
commit e386caf581
1 changed files with 1 additions and 15 deletions

View File

@ -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