diff options
Diffstat (limited to 'internal/api/model')
| -rw-r--r-- | internal/api/model/instancev1.go | 2 | ||||
| -rw-r--r-- | internal/api/model/instancev2.go | 2 | 
2 files changed, 4 insertions, 0 deletions
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"`  | 
