~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A post is labelled and taken down from its own Review

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:console/moderate-posts

What changes

The host answers each event in fyi.opensocial.getSubjectHistory with cid: the version of a record subject it is about, when the report, label or status named one. It's a new optional field on fyi.opensocial.defs#moderationEvent, from what the queue already kept.

The console gives a post's Review the same Labels and Take down parts as an account's, using the version its latest event names. Adding a label, taking it off and taking the post down send a com.atproto.repo.strongRef with that CID. The takedown says it hides this post and leaves the rest of what they posted, behind the confirmation "Take this down?". A post whose report named no version says so, and points to opensocial mod label with its CID.

The Moderating guide and the moderation design page say so. The reports look seed now names the version of the post it reports.

Why

Labelling a record takes its CID, and the queue keeps a record by its URI alone, so the console couldn't label or take down a post. Taking down one post is among the most common things a moderator does. The host already kept each event's CID; it just didn't answer it.

How it was checked

  • The host's moderation tests assert that an event names its version, and that one about no version has none.
  • Here: svelte-check, the layer and dialog checks, all 33 e2e flows, just shots --check (no guide picture changed), just docs and just lex pass.
  • Drawn with just look: a post's Review in all four looks, taken down, and its label taken off again, and the queue with the post's !takedown beside its reason.

Shortcomings

  • The version labelled is the one the latest event names. A post edited since its report is labelled at the version reported.
  • The e2e flow has no post in its queue, so post labelling is covered by the host's tests and the pictures, not a browser flow.

🤖 Generated with Claude Code

post-alice-desktop-light.png

post-down-alice-desktop-light.png

queue-alice-desktop-light.png

post-alice-phone-dark.png

Approved

The host now answers cid on each moderation event. The console's post Review uses the latest event's CID to add a label, remove one, or take the post down as a strongRef. A post with no known version shows a note that points to the terminal. I found nothing that must change.

  • The lexicon field is optional and the host tests assert both the present and absent cases.
  • The form action only builds a strongRef when uri is present, so account flows are unchanged.
  • The hidden inputs come from one snippet, so the label, unlabel and takedown forms all send the same subject.
  • The docs and the lexicon are updated with the change.

I did not run the checks. Post labelling has no browser flow, as the body says. The page action does nothing about a missing or empty cid. The dialog only offers the forms when a CID exists, so that is fine here.

Merged as 26cd03e