Merge branch 'mastodon:main' into main
This commit is contained in:
commit
e6d4c79b9f
|
@ -45,7 +45,8 @@ aliases: [
|
||||||
"public_key": "BCkMmVdKDnKYwzVCDC99Iuc9GvId-x7-kKtuHnLgfF98ENiZp_aj-UNthbCdI70DqN1zUVis-x0Wrot2sBagkMc="
|
"public_key": "BCkMmVdKDnKYwzVCDC99Iuc9GvId-x7-kKtuHnLgfF98ENiZp_aj-UNthbCdI70DqN1zUVis-x0Wrot2sBagkMc="
|
||||||
},
|
},
|
||||||
"accounts": {
|
"accounts": {
|
||||||
"max_featured_tags": 10
|
"max_featured_tags": 10,
|
||||||
|
"max_pinned_statuses": 4
|
||||||
},
|
},
|
||||||
"statuses": {
|
"statuses": {
|
||||||
"max_characters": 500,
|
"max_characters": 500,
|
||||||
|
@ -313,6 +314,13 @@ aliases: [
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
4.0.0 - added
|
4.0.0 - added
|
||||||
|
|
||||||
|
##### `configuration[accounts][max_pinned_statuses]` {#max_pinned_statuses}
|
||||||
|
|
||||||
|
**Description:** The maximum number of pinned statuses for each account.\
|
||||||
|
**Type:** Integer\
|
||||||
|
**Version history:**\
|
||||||
|
4.3.0 - added
|
||||||
|
|
||||||
#### `configuration[statuses]` {#statuses}
|
#### `configuration[statuses]` {#statuses}
|
||||||
|
|
||||||
**Description:** Limits related to authoring statuses.\
|
**Description:** Limits related to authoring statuses.\
|
||||||
|
|
|
@ -20,7 +20,7 @@ Translation of status with content warning and media
|
||||||
"spoiler_text": "Greatings ahead",
|
"spoiler_text": "Greatings ahead",
|
||||||
"media_attachments": [
|
"media_attachments": [
|
||||||
{
|
{
|
||||||
"id": 22345792,
|
"id": "22345792",
|
||||||
"description": "Status author waving at the camera"
|
"description": "Status author waving at the camera"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -36,19 +36,17 @@ Translation of status with poll:
|
||||||
"content": "<p>Should I stay or should I go?</p>",
|
"content": "<p>Should I stay or should I go?</p>",
|
||||||
"spoiler_text": "",
|
"spoiler_text": "",
|
||||||
"media_attachments": [],
|
"media_attachments": [],
|
||||||
"poll": [
|
"poll": {
|
||||||
{
|
"id": "34858",
|
||||||
"id": 34858,
|
"options": [
|
||||||
"options": [
|
{
|
||||||
{
|
"title": "Stay"
|
||||||
"title": "Stay"
|
},
|
||||||
},
|
{
|
||||||
{
|
"title": "Go"
|
||||||
"title": "Go"
|
}
|
||||||
}
|
]
|
||||||
]
|
},
|
||||||
}
|
|
||||||
],
|
|
||||||
"detected_source_language": "ja",
|
"detected_source_language": "ja",
|
||||||
"provider": "DeepL.com"
|
"provider": "DeepL.com"
|
||||||
}
|
}
|
||||||
|
@ -64,24 +62,24 @@ Translation of status with poll:
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
4.0.0 - added
|
4.0.0 - added
|
||||||
|
|
||||||
### `spoiler_warning` {#spoiler_warning}
|
### `spoiler_text` {#spoiler_text}
|
||||||
|
|
||||||
**Description:** The translated spoiler warning of the status.\
|
**Description:** The translated spoiler warning of the status.\
|
||||||
**Type:** String\
|
**Type:** String\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
4.2.0 - added
|
4.2.0 - added
|
||||||
|
|
||||||
### `poll` {#poll}
|
### `poll` {{%optional%}} {#poll}
|
||||||
|
|
||||||
**Description:** The translated poll options of the status.\
|
**Description:** The translated poll of the status.\
|
||||||
**Type:** Array\
|
**Type:** [Translation::Poll](#Poll)\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
4.2.0 - added
|
4.2.0 - added
|
||||||
|
|
||||||
### `media_attachments` {#media_attachments}
|
### `media_attachments` {#media_attachments}
|
||||||
|
|
||||||
**Description:** The translated media descriptions of the status.\
|
**Description:** The translated media descriptions of the status.\
|
||||||
**Type:** Array\
|
**Type:** Array of [Translation::Attachment](#Attachment)\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
4.2.0 - added
|
4.2.0 - added
|
||||||
|
|
||||||
|
@ -99,8 +97,49 @@ Translation of status with poll:
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
4.0.0 - added
|
4.0.0 - added
|
||||||
|
|
||||||
|
## Translation::Poll attributes {#Poll}
|
||||||
|
|
||||||
|
### `id` {#Poll-id}
|
||||||
|
|
||||||
|
**Description:** The ID of the poll.\
|
||||||
|
**Type:** String (cast from an integer, but not guaranteed to be a number)\
|
||||||
|
**Version history:**\
|
||||||
|
4.2.0 - added
|
||||||
|
|
||||||
|
### `options` {#Poll-options}
|
||||||
|
|
||||||
|
**Description:** The translated poll options.\
|
||||||
|
**Type:** Array of [Translation::Poll::Option](#Option)\
|
||||||
|
**Version history:**\
|
||||||
|
4.2.0 - added
|
||||||
|
|
||||||
|
## Translation::Poll::Option attributes {#Option}
|
||||||
|
|
||||||
|
### `title` {#Option-title}
|
||||||
|
|
||||||
|
**Description:** The translated title of the poll option.\
|
||||||
|
**Type:** String\
|
||||||
|
**Version history:**\
|
||||||
|
4.2.0 - added
|
||||||
|
|
||||||
|
## Translation::Attachment attributes {#Attachment}
|
||||||
|
|
||||||
|
### `id` {#Attachment-id}
|
||||||
|
|
||||||
|
**Description:** The id of the attachment.\
|
||||||
|
**Type:** String (cast from an integer, but not guaranteed to be a number)\
|
||||||
|
**Version history:**\
|
||||||
|
4.2.0 - added
|
||||||
|
|
||||||
|
### `description` {#Attachment-description}
|
||||||
|
|
||||||
|
**Description:** The translated description of the attachment.\
|
||||||
|
**Type:** String\
|
||||||
|
**Version history:**\
|
||||||
|
4.2.0 - added
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
{{< page-relref ref="methods/statuses#translate" caption="POST /api/v1/statuses/:id/translate" >}}
|
{{< page-relref ref="methods/statuses#translate" caption="POST /api/v1/statuses/:id/translate" >}}
|
||||||
|
|
||||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/translation_serializer.rb" caption="app/serializers/rest/translation_serializer.rb" >}}
|
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/translation_serializer.rb" caption="app/serializers/rest/translation_serializer.rb" >}}
|
||||||
|
|
|
@ -65,7 +65,8 @@ Obtain general information about the server.
|
||||||
"public_key": "BCkMmVdKDnKYwzVCDC99Iuc9GvId-x7-kKtuHnLgfF98ENiZp_aj-UNthbCdI70DqN1zUVis-x0Wrot2sBagkMc="
|
"public_key": "BCkMmVdKDnKYwzVCDC99Iuc9GvId-x7-kKtuHnLgfF98ENiZp_aj-UNthbCdI70DqN1zUVis-x0Wrot2sBagkMc="
|
||||||
},
|
},
|
||||||
"accounts": {
|
"accounts": {
|
||||||
"max_featured_tags": 10
|
"max_featured_tags": 10,
|
||||||
|
"max_pinned_statuses": 4
|
||||||
},
|
},
|
||||||
"statuses": {
|
"statuses": {
|
||||||
"max_characters": 500,
|
"max_characters": 500,
|
||||||
|
|
Loading…
Reference in New Issue