chadtmiller.com/group-host
atmosphere group host
0
0
A group takes appeals from those its moderators acted on
Merged Approved
This makes reasonAppeal a report only its subject may file. The subject is the account itself, or a record's author, found through account_of. An appeal of a subject the queue already has skips the role check and the space-read check. A new group's labeler lists the reason, and the docs, lexicon descriptions and tests follow.
I read the new code in create_report and the helpers it uses (account_of, space_of, public_of). It holds up:
- The labeler's
acceptscheck runs before the appeal check, so a labeler without the reason still refuses appeals. account_ofgives the right author for both space and public record URIs.- The subject check blocks anyone else from using the bypass.
- The bypass applies only to subjects with history.
- The test covers the cases that matter: ejected authors, reopening, non-subjects, and a group with nothing of theirs.
Two small points, neither blocking:
host.store.subjectnow runs for every report, though only appeals use it. You could skip it whenappealis false.- I did not read the full test file or run the checks; I judged the diff and the surrounding code only.
Approved
Since my approval at 9206efc, the only change is a rewording of one sentence in docs/guides/moderating.md. It touches no code and changes no behaviour, so the earlier approval stands.
Merged as 23fec61
What changes
Appeals.
fyi.opensocial.createReportwithreasonTypecom.atproto.moderation.defs#reasonAppealis an appeal, and only its subject may file it: an account for itself, or a record's author (the DID its URI is in) for the record. Anyone else is refusedInvalidRequest, saying only its subject may appeal. It goes into the queue as areportEventlike any report, reopening a resolved subject and keeping its reason, so moderators see it is an appeal, andgetSubjectHistoryanswers it as any report.Appealing after being put out. An appeal of a subject the group's queue already has (any event: a report, a label, an ejection) is taken though its author no longer holds a role in the group or reads the space it is in. Any other appeal meets the rules of any report.
A new group's labeler lists
reasonAppealamong itsreasonTypes. A labeler that leaves it out refuses appeals as any reason it does not take.The design page on moderation, the API reference, the moderating guide, and the descriptions of
createReportanddefs#reportEventsay so.Why
A forum built on the host lets its members answer what moderators did to them, as Ozone has appeals: a report filed by its subject with the appeal reason. Taking it through the queue keeps one place where moderators hear everything. Someone ejected has no role left, so the member and read checks would shut out the very people with most to appeal; the queue already having the subject is what shows the group acted on it.
How it was checked
takes_an_appeal_only_from_its_subjectintests/moderation.rs: an author appealing a post in a space and a public post, each queued as areportEventwithreasonAppeal; a moderator appealing them refused; an account appealing for itself, and again after being ejected, with its post appeals reopening a resolved subject; a post with no history, and a group with nothing of theirs, refused; a non-member never in the queue refused; and a new group's labeler listingreasonAppeal.takes_only_the_reports_its_labeler_doeschecks a labeler without it refuses an appeal. The moderation, groups and tokens tests pass locally, with clippy andjust lex; the rest is left to CI.Shortcomings
The console sends no appeals; an app such as a forum does.