mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 22:52:25 -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
18f82b83de
commit
95554220f3
6 changed files with 38 additions and 7 deletions
|
|
@ -120,6 +120,17 @@ type InstanceConfigurationMediaAttachments struct {
|
|||
//
|
||||
// example: 16777216
|
||||
VideoMatrixLimit int `json:"video_matrix_limit"`
|
||||
// The maximum size of a description, in characters.
|
||||
// Omitted for /api/v1/instance response.
|
||||
//
|
||||
// example: 5000
|
||||
DescriptionLimit int `json:"description_limit,omitempty"`
|
||||
// The minimum size required for a description, in characters.
|
||||
// Omitted if zero/not set.
|
||||
// Omitted for /api/v1/instance response.
|
||||
//
|
||||
// example: 200
|
||||
DescriptionMinimum int `json:"description_minimum,omitempty"`
|
||||
}
|
||||
|
||||
// InstanceConfigurationPolls models instance poll config parameters.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue