mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-09 08:00:13 +00:00
[bugfix] more little edit fixes (#3633)
* fix slice size calculation * stop attached status edit slice getting cached
This commit is contained in:
parent
6b727404be
commit
29da5b35a5
1
internal/cache/db.go
vendored
1
internal/cache/db.go
vendored
|
@ -1320,6 +1320,7 @@ func (c *Caches) initStatus() {
|
|||
s2.Mentions = nil
|
||||
s2.Emojis = nil
|
||||
s2.CreatedWithApplication = nil
|
||||
s2.Edits = nil
|
||||
|
||||
return s2
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue