mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 00:46:15 -06:00
fix slice size calculation
This commit is contained in:
parent
6b727404be
commit
379c05096d
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ func (s *Status) AllAttachmentIDs() []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get count of attachment IDs.
|
// Get count of attachment IDs.
|
||||||
total += len(s.Attachments)
|
total += len(s.AttachmentIDs)
|
||||||
for _, edit := range s.Edits {
|
for _, edit := range s.Edits {
|
||||||
total += len(edit.AttachmentIDs)
|
total += len(edit.AttachmentIDs)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue