documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Undocumented 403 from /api/v1/statuses/:id/translate

Open nikclayton opened this issue 1 year ago • 1 comments

This can fail with a 403 and body { "error": "This action is not allowed" }.

This happens if the status' language and the language of the account doing the translating are the same (e.g., a status mistakenly tagged as English but written in another language can not be translated by someone with their account set to English).

nikclayton avatar Nov 02 '23 13:11 nikclayton

https://github.com/mastodon/mastodon/issues/27439 is related to this -- it's currently not possible to determine the user's preferred language using the API.

nikclayton avatar Nov 02 '23 13:11 nikclayton