diff --git a/files/routes/admin.py b/files/routes/admin.py index 1d4565d7f..ba756b48f 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -196,6 +196,8 @@ def make_admin(v:User, username): ) g.db.add(ma) + send_repeatable_notification(user.id, f"@{v.username} added you as an admin!") + return {"message": f"@{user.username} has been made admin!"} @@ -215,6 +217,8 @@ def remove_admin(v:User, username): ) g.db.add(ma) + send_repeatable_notification(user.id, f"@{v.username} removed you as an admin!") + return {"message": f"@{user.username} has been removed as admin!"} @app.post("/distribute/")