forked from rDrama/rDrama
1
0
Fork 0

dont give a notif to myself

master
Aevann 2023-11-22 16:15:11 +02:00
parent b5428ba7fe
commit e3c670bf63
1 changed files with 1 additions and 1 deletions

View File

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