From 29da5b35a5653ae1667400d1aeee93a360c9d7ee Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 31 Dec 2024 09:44:07 +0000 Subject: [bugfix] more little edit fixes (#3633) * fix slice size calculation * stop attached status edit slice getting cached --- internal/gtsmodel/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/gtsmodel') diff --git a/internal/gtsmodel/status.go b/internal/gtsmodel/status.go index 4c65d8a88..3a348bba4 100644 --- a/internal/gtsmodel/status.go +++ b/internal/gtsmodel/status.go @@ -281,7 +281,7 @@ func (s *Status) AllAttachmentIDs() []string { } // Get count of attachment IDs. - total += len(s.Attachments) + total += len(s.AttachmentIDs) for _, edit := range s.Edits { total += len(edit.AttachmentIDs) } -- cgit v1.3