Skip to content

Commit fd02177

Browse files
committed
update label docs for report routing
1 parent 171ef13 commit fd02177

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/advanced-guides/moderation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ Labelers publish an `/app.bsky.labeler.service/self` record to declare that they
145145
}
146146
]
147147
},
148+
"subjectTypes": ["record"],
149+
"subjectCollections": ["app.bsky.feed.post", "app.bsky.actor.profile"],
150+
"reasonTypes": ["com.atproto.moderation.defs#reasonOther"],
148151
"createdAt": "2024-03-03T05:31:08.938Z"
149152
}
150153
```
@@ -153,6 +156,7 @@ The `labelValues` declares what to expect from the Labeler. It may include globa
153156

154157
The `labelValueDefinitions` defines the custom labels. It includes the `locales` field for specifying human-readable copy in various languages. If the user’s language is not found, it will use the first set of strings in the array.
155158

159+
`subjectTypes`, `subjectCollections`, and `reasonTypes` declare what type of moderation reports are reviewed by the Labeler. `subjectTypes` can include `record` for individual pieces of content, and `account` for overall accounts. `subjectCollections` is a list of NSIDs of record types; if not defined, any record type is allowed. `reasonTypes` is a list of report reason codes (Lexicon references).
156160

157161

158162
## Labeler subscriptions
@@ -191,6 +195,8 @@ agent
191195
})
192196
```
193197

198+
Clients should not send reports to Labelers which do not match the subject and report type metadata in the declaration record (see above).
199+
194200
## Official SDK
195201

196202
The official TypeScript SDK provides methods to help developers

0 commit comments

Comments
 (0)