From 6c97b77f4ca81e81c0818fd3904eb3f27b526c6d Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 16 May 2023 13:28:50 +0300 Subject: [PATCH] dont notify myself --- files/routes/groups.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/groups.py b/files/routes/groups.py index 38a6a0c33..4967f4c52 100644 --- a/files/routes/groups.py +++ b/files/routes/groups.py @@ -183,7 +183,8 @@ def group_reject(v:User, group_name, user_id): text = f"@{v.username} (!{group}'s owner) has rejected your application!" msg = f"You have rejected @{membership.user.username} successfully!" - send_repeatable_notification(membership.user_id, text) + if v.id != membership.user_id: + send_repeatable_notification(membership.user_id, text) g.db.delete(membership)