don't notify me of smth I did

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-25 17:56:51 +02:00
parent 8c906b9977
commit 84dc2b3973
1 changed files with 2 additions and 1 deletions

View File

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