diff --git a/files/routes/admin.py b/files/routes/admin.py index 38f81b1b5..c07325700 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1238,6 +1238,8 @@ def mute_user(v, user_id): g.db.add(ma) check_for_alts(user) + send_repeatable_notification(user.id, f"@{v.username} (a site admin) has muted you!") + return {"message": f"@{user.username} has been muted!"} @@ -1265,6 +1267,8 @@ def unmute_user(v, user_id): x.is_muted = False g.db.add(x) + send_repeatable_notification(user.id, f"@{v.username} (a site admin) has unmuted you!") + return {"message": f"@{user.username} has been unmuted!"} @app.post("/admin/progstack/post/")