fix slice size calculation

This commit is contained in:
kim 2024-12-30 13:56:18 +00:00
commit 379c05096d

View file

@ -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)
}