Unify fetch statuses and timelines API arguments
I found that api/v1/timelines/home
and /api/v1/timelines/list/:list_id
endpoint don't support only_media
argument. It looks very strange, because /api/v1/timelines/public
, /api/v1/timelines/tag/:hashtag
and /api/v1/accounts/:id/statuses
support this argument. I found this information at https://docs.joinmastodon.org/methods/timelines/ . Previously, I thought that it is documentation issue and only_media
argument should work with all statuses endpoint. However, today I found that api/v1/timelines/home?only_media=true
returns all available statuses (but should only with media). /api/v1/accounts/:id/statuses
support only_media
and pinned
, but documentation doesn't have information about that at https://docs.joinmastodon.org/methods/accounts/ and https://docs-develop.pleroma.social/backend/API/differences_in_mastoapi_responses/, so we have documentation issues too.
I think Pleroma should unify API and use same arguments for all statuses endpoint (in addition to only_media
I found useful local
and remote
arguments)
Tested on:
- Backend Version 2.1.50-50-g2cd2a8fd
- Frontend Version 65ac7113