From 84dc2b3973c14bad3c9f834d55f197710205e85b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 25 Aug 2022 17:56:51 +0200 Subject: [PATCH] don't notify me of smth I did --- 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 bddb8d3f0..586e262f7 100644 --- a/files/routes/oauth.py +++ b/files/routes/oauth.py @@ -176,7 +176,8 @@ def admin_app_revoke(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 revoked your application `{app.app_name}`.") + if v.id != app.author.id: + send_repeatable_notification(app.author.id, f"@{v.username} has revoked your application `{app.app_name}`.") g.db.delete(app)