diff options
author | 2021-08-26 11:28:16 +0200 | |
---|---|---|
committer | 2021-08-26 11:28:16 +0200 | |
commit | ddc120d5e6e0f18f235a6b5bbe5ceec86efedc41 (patch) | |
tree | 08869fd4514e7ba67c57e81e001df0e1c329414c /internal/gtsmodel/instance.go | |
parent | Pg to bun (#148) (diff) | |
download | gotosocial-ddc120d5e6e0f18f235a6b5bbe5ceec86efedc41.tar.xz |
fix public timeline bug (#150)
Diffstat (limited to 'internal/gtsmodel/instance.go')
-rw-r--r-- | internal/gtsmodel/instance.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/gtsmodel/instance.go b/internal/gtsmodel/instance.go index 5bfe942f7..ca2857b95 100644 --- a/internal/gtsmodel/instance.go +++ b/internal/gtsmodel/instance.go @@ -9,7 +9,7 @@ type Instance struct { // Instance domain eg example.org Domain string `bun:",pk,notnull,unique"` // Title of this instance as it would like to be displayed. - Title string + Title string `bun:",nullzero"` // base URI of this instance eg https://example.org URI string `bun:",notnull,unique"` // When was this instance created in the db? @@ -22,20 +22,20 @@ type Instance struct { DomainBlockID string `bun:"type:CHAR(26),nullzero"` DomainBlock *DomainBlock `bun:"rel:belongs-to"` // Short description of this instance - ShortDescription string + ShortDescription string `bun:",nullzero"` // Longer description of this instance - Description string + Description string `bun:",nullzero"` // Terms and conditions of this instance - Terms string + Terms string `bun:",nullzero"` // Contact email address for this instance - ContactEmail string + ContactEmail string `bun:",nullzero"` // Username of the contact account for this instance - ContactAccountUsername string + ContactAccountUsername string `bun:",nullzero"` // Contact account ID in the database for this instance ContactAccountID string `bun:"type:CHAR(26),nullzero"` ContactAccount *Account `bun:"rel:belongs-to"` // Reputation score of this instance Reputation int64 `bun:",notnull,default:0"` // Version of the software used on this instance - Version string + Version string `bun:",nullzero"` } |