mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Add description_limit
to /api/v2/instance
, increase default limit to 5k (#4140)
Closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4131 by adding `description_limit` to the `api/v2/instance` response. Also increases default sizes to default status length to allow people to more easily describe things like screenshots of text. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4140 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
@@ -1593,6 +1593,23 @@ definitions:
|
||||
x-go-package: code.superseriousbusiness.org/gotosocial/internal/api/model
|
||||
instanceConfigurationMediaAttachments:
|
||||
properties:
|
||||
description_limit:
|
||||
description: |-
|
||||
The maximum size of a description, in characters.
|
||||
Omitted for /api/v1/instance response.
|
||||
example: 5000
|
||||
format: int64
|
||||
type: integer
|
||||
x-go-name: DescriptionLimit
|
||||
description_minimum:
|
||||
description: |-
|
||||
The minimum size required for a description, in characters.
|
||||
Omitted if zero/not set.
|
||||
Omitted for /api/v1/instance response.
|
||||
example: 200
|
||||
format: int64
|
||||
type: integer
|
||||
x-go-name: DescriptionMinimum
|
||||
image_matrix_limit:
|
||||
description: |-
|
||||
Max allowed image size in pixels as height*width.
|
||||
|
Reference in New Issue
Block a user