summaryrefslogtreecommitdiff
path: root/internal/api/model/instance.go
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2023-06-13 12:21:26 +0200
committerLibravatar GitHub <noreply@github.com>2023-06-13 12:21:26 +0200
commit8fb5a7e7f8d4201590e709989e8f0627e800c147 (patch)
tree2fb888f081584f33e198eadfcf218714c3824002 /internal/api/model/instance.go
parent[docs] Made Advanced its own section (#1883) (diff)
downloadgotosocial-8fb5a7e7f8d4201590e709989e8f0627e800c147.tar.xz
[Frontend] Settings for profile fields (#1885)
* get max emoji size from instance settings * expose (hardcoded) max amount of profile fields in instance api * basic profile field setting * fix profile field hook structure for updates * *twirls mustache* fix ze tests --------- Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/api/model/instance.go')
-rw-r--r--internal/api/model/instance.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/api/model/instance.go b/internal/api/model/instance.go
index edd9fe7bb..5232e8d66 100644
--- a/internal/api/model/instance.go
+++ b/internal/api/model/instance.go
@@ -54,6 +54,9 @@ type InstanceConfigurationAccounts struct {
// The maximum number of featured tags allowed for each account.
// Currently not implemented, so this is hardcoded to 10.
MaxFeaturedTags int `json:"max_featured_tags"`
+ // The maximum number of profile fields allowed for each account.
+ // Currently not configurable, so this is hardcoded to 6. (https://github.com/superseriousbusiness/gotosocial/issues/1876)
+ MaxProfileFields int `json:"max_profile_fields"`
}
// InstanceConfigurationStatuses models instance status config parameters.