com.getorbyt.community.resolveReportedPost
Resolves every open report about one post at once: remove the post, or dismiss the reports and keep it. Requires manage-reports, and manage-posts to remove.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | community.getorbyt.com |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.actionNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Resolves every open report about one post at once: remove the post, or dismiss the reports and keep it. Requires manage-reports, and manage-posts to remove.",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "CommunityNotFound"
},
{
"name": "InsufficientRole"
},
{
"name": "PostNotFound"
},
{
"name": "RuleNotFound"
},
{
"name": "InvalidState"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"action": {
"knownValues": [
"remove",
"dismiss"
],
"type": "string"
},
"community": {
"format": "at-uri",
"type": "string"
},
"note": {
"description": "For remove: the reason shown to the author. For dismiss: a note for the moderation log.",
"maxLength": 1000,
"type": "string"
},
"post": {
"format": "at-uri",
"type": "string"
},
"ruleIndex": {
"description": "For remove: the Community rule the post broke, by position. Shown to the author.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"community",
"post",
"action"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"post": {
"ref": "com.getorbyt.community.defs#reportedPostView",
"type": "ref"
},
"resolved": {
"description": "How many open reports this resolved.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"resolved"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "com.getorbyt.community.resolveReportedPost",
"lexicon": 1
}