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)