From d79c2f26888b512faaa0526936b8752cfb6c8b28 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 3 Jun 2024 11:20:53 +0200 Subject: [feature/frontend] Add debug sections to settings panel (#2950) * [feature/frontend] Add debug sections to settings panel * max-width * swagger --- internal/api/model/instancev1.go | 2 ++ internal/api/model/instancev2.go | 2 ++ 2 files changed, 4 insertions(+) (limited to 'internal/api/model') diff --git a/internal/api/model/instancev1.go b/internal/api/model/instancev1.go index 03e27619c..217edc08c 100644 --- a/internal/api/model/instancev1.go +++ b/internal/api/model/instancev1.go @@ -59,6 +59,8 @@ type InstanceV1 struct { // // example: 0.1.1 cb85f65 Version string `json:"version"` + // Whether or not instance is running in DEBUG mode. Omitted if false. + Debug *bool `json:"debug,omitempty"` // Primary language of the instance. // example: ["en"] Languages []string `json:"languages"` diff --git a/internal/api/model/instancev2.go b/internal/api/model/instancev2.go index dda9033b4..a1b98ea65 100644 --- a/internal/api/model/instancev2.go +++ b/internal/api/model/instancev2.go @@ -40,6 +40,8 @@ type InstanceV2 struct { // // example: 0.1.1 cb85f65 Version string `json:"version"` + // Whether or not instance is running in DEBUG mode. Omitted if false. + Debug *bool `json:"debug,omitempty"` // The URL for the source code of the software running on this instance, in keeping with AGPL license requirements. // example: https://github.com/superseriousbusiness/gotosocial SourceURL string `json:"source_url"` -- cgit v1.2.3