added total

to the instance adminAPI endpoint
This commit is contained in:
Alexander Strizhakov 2021-01-21 19:17:37 +03:00
commit d4158e8bf0
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
5 changed files with 45 additions and 25 deletions

View file

@ -311,7 +311,18 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret
- *optional* `with_reblogs`: `true`/`false` allows to see reblogs (default is false)
- Response:
- On failure: `Not found`
- On success: JSON array of instance's latest statuses
- On success: JSON, where:
- `total`: total count of the statuses for the instance
- `activities`: list of the statuses for the instance
```json
{
"total" : 1,
"activities": [
// activities list
]
}
```
## `GET /api/pleroma/admin/statuses`