summaryrefslogtreecommitdiff
path: root/internal/api/model/instancev2.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-01-05 13:39:31 +0100
committerLibravatar GitHub <noreply@github.com>2024-01-05 13:39:31 +0100
commitd5e3996a18ee37fc4bdf5718632d3d19ac7a8c1b (patch)
tree7b8df224893611c77cadc847c2fd8d7ec239b636 /internal/api/model/instancev2.go
parent[bugfix] fix check for closed poll to account for non-zero closed time but in... (diff)
downloadgotosocial-d5e3996a18ee37fc4bdf5718632d3d19ac7a8c1b.tar.xz
[feature] Parse instance descriptors as markdown, show T&C on /about (#2481)
* [feature] Parse instance descriptors as markdown, show T&C on /about * lint * remove unnecessary nullzero tags
Diffstat (limited to 'internal/api/model/instancev2.go')
-rw-r--r--internal/api/model/instancev2.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/api/model/instancev2.go b/internal/api/model/instancev2.go
index 6af657813..dda9033b4 100644
--- a/internal/api/model/instancev2.go
+++ b/internal/api/model/instancev2.go
@@ -49,6 +49,8 @@ type InstanceV2 struct {
//
// This should be displayed on the 'about' page for an instance.
Description string `json:"description"`
+ // Raw (unparsed) version of description.
+ DescriptionText string `json:"description_text,omitempty"`
// Basic anonymous usage data for this instance.
Usage InstanceV2Usage `json:"usage"`
// An image used to represent this instance.
@@ -66,6 +68,8 @@ type InstanceV2 struct {
Rules []InstanceRule `json:"rules"`
// Terms and conditions for accounts on this instance.
Terms string `json:"terms,omitempty"`
+ // Raw (unparsed) version of terms.
+ TermsText string `json:"terms_text,omitempty"`
}
// Usage data for this instance.