From e0d32c71054f08ac760a812f686eca07a4586cf5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 12 Sep 2022 19:52:07 +0200 Subject: [PATCH] dont send me a notif --- files/routes/oauth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/oauth.py b/files/routes/oauth.py index ef5701601..b44d2b892 100644 --- a/files/routes/oauth.py +++ b/files/routes/oauth.py @@ -202,7 +202,8 @@ def admin_app_reject(v, aid): if app: for auth in g.db.query(ClientAuth).filter_by(oauth_client=app.id).all(): g.db.delete(auth) - send_repeatable_notification(app.author.id, f"@{v.username} has rejected your application `{app.app_name}`.") + if v.id != app.author.id: + send_repeatable_notification(app.author.id, f"@{v.username} has rejected your application `{app.app_name}`.") g.db.delete(app)