mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-02-24 23:47:45 +01: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.Mentions = nil
|
||||||
s2.Emojis = nil
|
s2.Emojis = nil
|
||||||
s2.CreatedWithApplication = nil
|
s2.CreatedWithApplication = nil
|
||||||
|
s2.Edits = nil
|
||||||
|
|
||||||
return s2
|
return s2
|
||||||
}
|
}
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user