[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:
tobi
2025-05-06 09:58:47 +00:00
committed by tobi
parent 57fc267b5c
commit cf93d3af0a
6 changed files with 38 additions and 7 deletions

View File

@@ -50,9 +50,9 @@ media-remote-max-size: 40MiB
media-description-min-chars: 0
# Int. Maximum amount of characters permitted in an image or video description.
# Examples: [1000, 1500, 3000]
# Default: 1500
media-description-max-chars: 1500
# Examples: [1000, 5000, 10000]
# Default: 5000
media-description-max-chars: 5000
# Size. Max size in bytes of emojis uploaded to this instance via the admin API.
#