notify ppl when they're muted or unmuted

master
Aevann 2023-08-05 13:27:03 +03:00
parent 29433eb342
commit 87d0a14b37
1 changed files with 4 additions and 0 deletions

View File

@ -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/<int:post_id>")