From 379c05096d54bc942fd00668ee9a1560acb4ff9c Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 30 Dec 2024 13:56:18 +0000 Subject: [PATCH] fix slice size calculation --- internal/gtsmodel/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }