mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 16:22:24 -05: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:
parent
57fc267b5c
commit
cf93d3af0a
6 changed files with 38 additions and 7 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue