diff options
| author | 2023-10-24 14:23:22 +0200 | |
|---|---|---|
| committer | 2023-10-24 14:34:56 +0200 | |
| commit | 1e632dc41135956174b84499b33488a7c603b0c6 (patch) | |
| tree | 5e02db08f81af693d36245468ef14b023fe24604 /internal/api/model/instancev1.go | |
| parent | [bugfix/frontend] Add `nosubmit` option to form fields + use it when instance... (diff) | |
| download | gotosocial-1e632dc41135956174b84499b33488a7c603b0c6.tar.xz | |
[bugfix] serialize instance terms via API (#2293)
Diffstat (limited to 'internal/api/model/instancev1.go')
| -rw-r--r-- | internal/api/model/instancev1.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/model/instancev1.go b/internal/api/model/instancev1.go index 3b3d215b0..2e5fef123 100644 --- a/internal/api/model/instancev1.go +++ b/internal/api/model/instancev1.go @@ -90,6 +90,8 @@ type InstanceV1 struct { MaxTootChars uint `json:"max_toot_chars"` // An itemized list of rules for this instance. Rules []InstanceRule `json:"rules"` + // Terms and conditions for accounts on this instance. + Terms string `json:"terms,omitempty"` } // InstanceV1URLs models instance-relevant URLs for client application consumption. |
