forked from rDrama/rDrama
notify ppl when they're muted or unmuted
parent
29433eb342
commit
87d0a14b37
|
@ -1238,6 +1238,8 @@ def mute_user(v, user_id):
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
check_for_alts(user)
|
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!"}
|
return {"message": f"@{user.username} has been muted!"}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1265,6 +1267,8 @@ def unmute_user(v, user_id):
|
||||||
x.is_muted = False
|
x.is_muted = False
|
||||||
g.db.add(x)
|
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!"}
|
return {"message": f"@{user.username} has been unmuted!"}
|
||||||
|
|
||||||
@app.post("/admin/progstack/post/<int:post_id>")
|
@app.post("/admin/progstack/post/<int:post_id>")
|
||||||
|
|
Loading…
Reference in New Issue