From f4a6e76ab5ac8b1c625890c85d146eb04d1a06ea Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 15 Jun 2022 21:36:02 +0200 Subject: [PATCH] add nuke and un-nuke notifications --- files/routes/admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index 098e35e3e..d51d68aab 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1560,6 +1560,8 @@ def admin_nuke_user(v): ) g.db.add(ma) + notify_mod_action(v.id, f"@{v.username} has nuked @{user.username}") + g.db.commit() return redirect(user.url) @@ -1595,6 +1597,8 @@ def admin_nunuke_user(v): ) g.db.add(ma) + notify_mod_action(v.id, f"@{v.username} has un-nuked @{user.username}") + g.db.commit() return redirect(user.url)