added total

to the user statuses adminAPI endpoint
This commit is contained in:
Alexander Strizhakov 2021-01-21 18:51:21 +03:00
parent d7af0294e6
commit 6806c03e85
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
6 changed files with 80 additions and 39 deletions

View file

@ -287,7 +287,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 user's latest statuses
- On success: JSON, where:
- `total`: total count of the statuses for the user
- `activities`: list of the statuses for the user
```json
{
"total" : 1,
"activities": [
// activities list
]
}
```
## `GET /api/pleroma/admin/instances/:instance/statuses`