From f11dcf031b9e374e0b461428cd9dc1055d0b6a7f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 13 Sep 2022 12:27:09 +0200 Subject: [PATCH] give notif on bagde removal --- files/routes/admin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 501ed6524..c138ceaa3 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -573,7 +573,7 @@ def badge_grant_post(v): if v.id != user.id: text = f"@{v.username} has given you the following profile badge:\n\n![]({new_badge.path})\n\n**{new_badge.name}**\n\n{new_badge.badge.description}" - send_notification(user.id, text) + send_repeatable_notification(user.id, text) ma = ModAction( kind="badge_grant", @@ -618,6 +618,10 @@ def badge_remove_post(v): if not badge: return render_template("admin/badge_remove.html", v=v, badge_types=badges, error="User doesn't have that badge.") + if v.id != user.id: + text = f"@{v.username} has removed the following profile badge from you:\n\n![]({badge.path})\n\n**{badge.name}**\n\n{badge.badge.description}" + send_repeatable_notification(user.id, text) + ma = ModAction( kind="badge_remove", user_id=v.id,