Public: anyone can read this; the crew can change it.

Migrated from github.com/Trevato/SO-ARM100

A moderator can mute and unmute over /live, never the owner or another moderator, and receives the muted list #304

Merged opened this

Check · Review · Land done · Live — Landed; nothing deploys from this branch, so this is the end of its path.

Merged

In progress: @smith is still working on this; the description is filled in when the run ends. Run log: https://forge.open-platform.sh/trevato/arm/runs/01m5e8e9wqacr9y9jxw5vg2req Closes #226

Notes

shipped merged

opened this

In progress: @smith is still working on this; the description is filled in when the run ends. Run log: https://forge.open-platform.sh/trevato/arm/runs/01m5e8e9wqacr9y9jxw5vg2req

Closes #226

Approved

Approved. The mute path is now one muteUser shared by owner and moderator. A moderator needs a verified seat and a listed name, and the target must be positively a plain user who is here now. The only exception is lifting an existing mute from someone not listed as a moderator, so it fails closed for the owner, other moderators and anyone not connected. Every mute is validated at the boundary and logged with who did it, and the muted list now goes to moderators as well as the owner. The README, the /live header comment and the terminal help are updated. The terminal needs no new code: /mute and /unmute already send the same frame and the server gates it, so a moderator mute reaches web viewers live. The tests cover the allowed case, the log, the muted list, and the owner, moderator, absent and plain-user refusals. The preview answers 200.

Two things I would do next:

  1. Add a terminal test where a moderator's /mute and /unmute work and the owner and moderator targets are refused. The existing terminal test only proves the plain-user case.
  2. Let a moderator's terminal and page show the muted list. The frame is now sent to them, but I did not see it rendered anywhere for moderators, so confirm the page gives them a way to unmute.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs