!Friendica Support Is there anything to be known about Friendica and its implementation of the Mastodon client API specifically when it comes to posting media (such as images)? I do have code that works with recent Mastodon variants but trying this against a Friendica server (POST /api/v1/media) ends up in

{
"error": "This API requires login"
}

... which seems a bit odd, for what I see it takes an Authorization: Bearer token which is there and works with other API interactions from the same code. Ideas, anyone?

teilten dies erneut

Als Antwort auf Kristian

Fixed it seems. Apparently the API implementation in Mastodon doesn't really pay attention to the OAuth Authorization header if an access_token field containing the same information in the request body is present (which obscured the fact that the scripts syntax of assembling the HTTP headers for the upload request was wrong).

Friendica Support hat dies geteilt.