diff options
author | 2023-07-21 19:49:13 +0200 | |
---|---|---|
committer | 2023-07-21 18:49:13 +0100 | |
commit | f8f03120427d9d10e1b730a7626880809e983076 (patch) | |
tree | a9cc796162f8e40acc0c6712affb1dbef58668d8 /internal/config/config.go | |
parent | [chore]: Bump modernc.org/sqlite from 1.23.1 to 1.24.0 (#1993) (diff) | |
download | gotosocial-f8f03120427d9d10e1b730a7626880809e983076.tar.xz |
[feature] Report Masto version in /api/v1/instance (#1977)
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 53514e20b..cb158cdad 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -80,6 +80,7 @@ type Configuration struct { InstanceExposeSuspendedWeb bool `name:"instance-expose-suspended-web" usage:"Expose list of suspended instances as webpage on /about/suspended"` InstanceExposePublicTimeline bool `name:"instance-expose-public-timeline" usage:"Allow unauthenticated users to query /api/v1/timelines/public"` InstanceDeliverToSharedInboxes bool `name:"instance-deliver-to-shared-inboxes" usage:"Deliver federated messages to shared inboxes, if they're available."` + InstanceInjectMastodonVersion bool `name:"instance-inject-mastodon-version" usage:"This injects a Mastodon compatible version in /api/v1/instance to help Mastodon clients that use that version for feature detection"` AccountsRegistrationOpen bool `name:"accounts-registration-open" usage:"Allow anyone to submit an account signup request. If false, server will be invite-only."` 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."` |