dont notify myself

pull/150/head
Aevann 2023-05-16 13:28:50 +03:00
parent 66c1baf13c
commit 6c97b77f4c
1 changed files with 2 additions and 1 deletions

View File

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