Skip to content

Fix /api/v2/media returning the wrong status code for media processed synchronously

feld requested to merge mediav2-fix into develop

The API should return a 202 only if data cannot be returned yet and a followup GET /api/v1/media/:id should be called to retrieve it. This is something Mastodon does when it needs to transcode large media files. It does not apply to Pleroma and causes apps to waste an API call when posting a status which causes apps to appear to hang on higher latency environments, such as on mobile networks.

https://docs.joinmastodon.org/methods/media/#v2

Edited by feld

Merge request reports

Loading