Skip to content

https://docs.joinmastodon.org/methods/statuses/#translate buries visibility requirements, does not have correct response code #1249

@nikclayton

Description

@nikclayton

It appears as though statuses that have a visibility of private or direct can not be translated using the translation API.

This requirement is not clear in the documentation. The closest it gets to a mention is the description in https://docs.joinmastodon.org/methods/statuses/#404-not-found-3 which says it can occur:

Status is private or does not exist

  1. This should be made more prominent in the documentation. I suggest amending the description of the API from "Translate the status content into some language." to "Translate the content of a status with public or unlisted visibility into some language".

  2. The error that is returned is missing. If you try and translate a status with private or direct visibility the server returns a 403 with a JSON response body of { "error": "This action is not allowed" } (from mastodon.social at the time of writing (4.1.3+nightly-20230706))

Metadata

Metadata

Assignees

Labels

APIThe Mastodon core API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions