diff options
| author | 2025-05-06 09:58:47 +0000 | |
|---|---|---|
| committer | 2025-05-06 09:58:47 +0000 | |
| commit | cf93d3af0ace59fa618a51537a77f7912e5f1610 (patch) | |
| tree | 196ab23fdac7871a587f929da2265a8b18476c97 /docs/api | |
| parent | [feature] add ability to change s3 bucket lookup type (#4120) (diff) | |
| download | gotosocial-cf93d3af0ace59fa618a51537a77f7912e5f1610.tar.xz | |
[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>
Diffstat (limited to 'docs/api')
| -rw-r--r-- | docs/api/swagger.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 59e698596..851106398 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -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. |
