From d5e3996a18ee37fc4bdf5718632d3d19ac7a8c1b Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 5 Jan 2024 13:39:31 +0100 Subject: [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 --- internal/gtsmodel/instance.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'internal/gtsmodel') 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 -- cgit v1.3