diff options
author | 2021-06-23 16:35:57 +0200 | |
---|---|---|
committer | 2021-06-23 16:35:57 +0200 | |
commit | 8c9a8533434ec6e159541896d5f43e39303d42e4 (patch) | |
tree | 3da3cbf9aa33a160cd076f2b9f8d56396ae3bdfa /internal/processing/processor.go | |
parent | Opengraph meta tags (#55) (diff) | |
download | gotosocial-8c9a8533434ec6e159541896d5f43e39303d42e4.tar.xz |
Instance settings updates (#59)
Allow admins to set instance settings through a PATCH to /api/v1/instance
Update templates to reflect some of the new fields
Diffstat (limited to 'internal/processing/processor.go')
-rw-r--r-- | internal/processing/processor.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/processing/processor.go b/internal/processing/processor.go index 618fd641b..2cfa6e4e3 100644 --- a/internal/processing/processor.go +++ b/internal/processing/processor.go @@ -95,6 +95,10 @@ type Processor interface { // InstanceGet retrieves instance information for serving at api/v1/instance InstanceGet(domain string) (*apimodel.Instance, gtserror.WithCode) + // InstancePatch updates this instance according to the given form. + // + // It should already be ascertained that the requesting account is authenticated and an admin. + InstancePatch(form *apimodel.InstanceSettingsUpdateRequest) (*apimodel.Instance, gtserror.WithCode) // MediaCreate handles the creation of a media attachment, using the given form. MediaCreate(authed *oauth.Auth, form *apimodel.AttachmentRequest) (*apimodel.Attachment, error) |