unmute alts too so the mute doesnt propagate back

pull/176/head
Aevann 2023-08-04 00:27:59 +03:00
parent 854b9de703
commit df2b20c8dd
1 changed files with 5 additions and 0 deletions

View File

@ -1268,6 +1268,11 @@ def unmute_user(v, user_id):
g.db.add(user)
g.db.add(ma)
for x in get_alt_graph(user.id):
if x.is_muted:
x.is_muted = False
g.db.add(x)
return {"message": f"@{user.username} has been unmuted!"}
@app.post("/admin/progstack/post/<int:post_id>")