diff options
author | 2023-05-25 15:18:15 +0200 | |
---|---|---|
committer | 2023-05-25 15:18:15 +0200 | |
commit | fc524f8cf16761f949303a96bca14e63c46ceda8 (patch) | |
tree | 7c73a836c4d0d89e3dbc672269ceabad082547e6 /internal/config/config.go | |
parent | [bugfix] allow usernames of length 1 (#1823) (diff) | |
download | gotosocial-fc524f8cf16761f949303a96bca14e63c46ceda8.tar.xz |
[feature] Configurable custom css length (#1827)
* [feature] Make accounts custom css length configurable
* test custom css validation
Diffstat (limited to 'internal/config/config.go')
-rw-r--r-- | internal/config/config.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 0b7b527ea..8dcbcaf97 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -85,6 +85,7 @@ type Configuration struct { AccountsApprovalRequired bool `name:"accounts-approval-required" usage:"Do account signups require approval by an admin or moderator before user can log in? If false, new registrations will be automatically approved."` AccountsReasonRequired bool `name:"accounts-reason-required" usage:"Do new account signups require a reason to be submitted on registration?"` AccountsAllowCustomCSS bool `name:"accounts-allow-custom-css" usage:"Allow accounts to enable custom CSS for their profile pages and statuses."` + AccountsCustomCSSLength int `name:"accounts-custom-css-length" usage:"Maximum permitted length (characters) of custom CSS for accounts."` MediaImageMaxSize bytesize.Size `name:"media-image-max-size" usage:"Max size of accepted images in bytes"` MediaVideoMaxSize bytesize.Size `name:"media-video-max-size" usage:"Max size of accepted videos in bytes"` |