diff options
author | 2024-12-02 06:24:48 -0500 | |
---|---|---|
committer | 2024-12-02 12:24:48 +0100 | |
commit | 9609c4550d0cf6010ab88357fb5636e42ad22ba7 (patch) | |
tree | 2c339976192013aa79d164de90104ba3ca990a84 /internal/api/model/instance.go | |
parent | [feature/themes] Add auto-switching themes for blurple/brutalist/solarized (#... (diff) | |
download | gotosocial-9609c4550d0cf6010ab88357fb5636e42ad22ba7.tar.xz |
[feature] Add global instance CSS customization setting (#3352)
Allow instance admins to add custom CSS that will affect
every page of their instance.
This is done with a new CustomCSS instance setting that
works pretty much exactly like the Users CustomCSS property.
This custom CSS is then requested for every page load.
User styles/themes take precedence over this CSS.
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/api/model/instance.go')
-rw-r--r-- | internal/api/model/instance.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/model/instance.go b/internal/api/model/instance.go index 5232e8d66..d59424fa5 100644 --- a/internal/api/model/instance.go +++ b/internal/api/model/instance.go @@ -33,6 +33,8 @@ type InstanceSettingsUpdateRequest struct { ShortDescription *string `form:"short_description" json:"short_description" xml:"short_description"` // Longer description of the instance, max 5,000 chars. HTML formatting accepted. Description *string `form:"description" json:"description" xml:"description"` + // Custom CSS for the instance. + CustomCSS *string `form:"custom_css" json:"custom_css,omitempty" xml:"custom_css"` // Terms and conditions of the instance, max 5,000 chars. HTML formatting accepted. Terms *string `form:"terms" json:"terms" xml:"terms"` // Image to use as the instance thumbnail. |