Prefix Ntfy titles with app name and remove startup notification
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
acfa21ec38
commit
5b7d689453
5 files changed
+6
-9
No files matched your search
@@ -74,7 +74,7 @@ async def disable_user(
|
||||
|
||||
user.is_disabled = True
|
||||
await db.commit()
|
||||
await notify("User disabled", f"Account disabled: {user.email} (by admin {current_admin.email})", priority="default")
|
||||
await notify("User Disabled", f"Account disabled: {user.email} (by admin {current_admin.email})", priority="default")
|
||||
|
||||
|
||||
@router.post("/users/{user_id}/enable", status_code=status.HTTP_204_NO_CONTENT)
|
||||
@@ -108,7 +108,7 @@ async def delete_user(
|
||||
|
||||
await db.delete(user)
|
||||
await db.commit()
|
||||
await notify("User deleted", f"Account deleted: {user.email} (by admin {current_admin.email})", priority="default")
|
||||
await notify("User Deleted", f"Account deleted: {user.email} (by admin {current_admin.email})", priority="default")
|
||||
|
||||
|
||||
@router.post("/users/{user_id}/impersonate", response_model=Token)
|
||||
|
||||
Reference in new issue
Block a user