diff options
author | 2024-01-05 13:39:31 +0100 | |
---|---|---|
committer | 2024-01-05 13:39:31 +0100 | |
commit | d5e3996a18ee37fc4bdf5718632d3d19ac7a8c1b (patch) | |
tree | 7b8df224893611c77cadc847c2fd8d7ec239b636 /internal/gtsmodel/instance.go | |
parent | [bugfix] fix check for closed poll to account for non-zero closed time but in... (diff) | |
download | gotosocial-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/gtsmodel/instance.go')
-rw-r--r-- | internal/gtsmodel/instance.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/gtsmodel/instance.go b/internal/gtsmodel/instance.go index 6d572f519..027d8fba4 100644 --- a/internal/gtsmodel/instance.go +++ b/internal/gtsmodel/instance.go @@ -31,8 +31,11 @@ type Instance struct { DomainBlockID string `bun:"type:CHAR(26),nullzero"` // ID of any existing domain block for this instance in the database DomainBlock *DomainBlock `bun:"rel:belongs-to"` // Domain block corresponding to domainBlockID ShortDescription string `bun:""` // Short description of this instance - Description string `bun:""` // Longer description of this instance - Terms string `bun:""` // Terms and conditions of this instance + ShortDescriptionText string `bun:""` // Raw text version of short description (before parsing). + Description string `bun:""` // Longer description of this instance. + DescriptionText string `bun:""` // Raw text version of long description (before parsing). + Terms string `bun:""` // Terms and conditions of this instance. + TermsText string `bun:""` // Raw text version of terms (before parsing). ContactEmail string `bun:""` // Contact email address for this instance ContactAccountUsername string `bun:",nullzero"` // Username of the contact account for this instance ContactAccountID string `bun:"type:CHAR(26),nullzero"` // Contact account ID in the database for this instance |