summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/domainblock.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gtsmodel/domainblock.go')
-rw-r--r--internal/gtsmodel/domainblock.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/gtsmodel/domainblock.go b/internal/gtsmodel/domainblock.go
index b32984e95..1bed86d8f 100644
--- a/internal/gtsmodel/domainblock.go
+++ b/internal/gtsmodel/domainblock.go
@@ -31,7 +31,8 @@ type DomainBlock struct {
// When was this block updated
UpdatedAt time.Time `pg:"type:timestamp,notnull,default:now()"`
// Account ID of the creator of this block
- CreatedByAccountID string `pg:"type:CHAR(26),notnull"`
+ CreatedByAccountID string `pg:"type:CHAR(26),notnull"`
+ CreatedByAccount *Account `pg:"rel:belongs-to"`
// Private comment on this block, viewable to admins
PrivateComment string
// Public comment on this block, viewable (optionally) by everyone