From e3c670bf63bcc360cc463cdf7577b1560f983ebc Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 22 Nov 2023 16:15:11 +0200 Subject: [PATCH] dont give a notif to myself --- files/routes/groups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/groups.py b/files/routes/groups.py index fc41eac33..a747024b6 100644 --- a/files/routes/groups.py +++ b/files/routes/groups.py @@ -161,7 +161,7 @@ def group_approve(v, group_name, user_id): if not application: abort(404, "There is no application to approve!") - if not application.approved_utc: + if not application.approved_utc and v.id != application.user_id: application.approved_utc = time.time() g.db.add(application) send_repeatable_notification(application.user_id, f"@{v.username} (!{group}'s owner) has approved your application!")