From f55be91579a1c22960f36bf912629985dbf9285e Mon Sep 17 00:00:00 2001 From: ewin Date: Wed, 5 Mar 2025 18:19:52 -0500 Subject: [PATCH] clean up the final diff a bit --- internal/gtsmodel/status.go | 1 - internal/gtsmodel/statusedit.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gtsmodel/status.go b/internal/gtsmodel/status.go index 2bb219ce3..424a0065f 100644 --- a/internal/gtsmodel/status.go +++ b/internal/gtsmodel/status.go @@ -382,7 +382,6 @@ func (v Visibility) String() string { type StatusContentType enumType const ( - // The "unset" StatusContentTypePlain StatusContentType = 1 StatusContentTypeMarkdown StatusContentType = 2 StatusContentTypeDefault = StatusContentTypePlain diff --git a/internal/gtsmodel/statusedit.go b/internal/gtsmodel/statusedit.go index 0c434dba9..9c31495eb 100644 --- a/internal/gtsmodel/statusedit.go +++ b/internal/gtsmodel/statusedit.go @@ -41,6 +41,7 @@ type StatusEdit struct { PollVotes []int `bun:",array"` // Poll vote count at time of status edit, only set if poll votes were reset. StatusID string `bun:"type:CHAR(26),nullzero,notnull"` // The originating status ID this is a historical edit of. CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // The creation time of this version of the status content (according to receiving server). + // We don't bother having a *gtsmodel.Status model here // as the StatusEdit is always just attached to a Status, // so it doesn't need a self-reference back to it.