net.nusno.gyoka.feed.trimPosts
Keep the leading posts in the current feed display order and remove the rest.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | feed.gyoka.nusno.net |
| Commit rev | 3n2xvbohadq24 |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Keep the leading posts in the current feed display order and remove the rest.",
"errors": [
{
"description": "Returned when service authentication is required and the caller is not authenticated.",
"name": "AuthenticationRequired"
},
{
"description": "Returned when the authenticated caller is not in the admin allowlist.",
"name": "Forbidden"
},
{
"description": "Returned when request input is invalid.",
"name": "BadRequest"
},
{
"description": "Returned when the target feed URI is not registered.",
"name": "UnknownFeed"
},
{
"description": "Returned when a concurrent mutation changes the feed before trimming starts.",
"name": "RevisionConflict"
},
{
"description": "Returned when posts cannot be trimmed.",
"name": "InternalServerError"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"feed": {
"format": "at-uri",
"type": "string"
},
"remain": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"feed",
"remain"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"deletedCount": {
"minimum": 0,
"type": "integer"
},
"feed": {
"format": "at-uri",
"type": "string"
},
"orderRevision": {
"description": "Current feed order revision after trimming.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"feed",
"deletedCount",
"orderRevision"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "net.nusno.gyoka.feed.trimPosts",
"lexicon": 1
}