mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-08 09:03:16 -06:00
update remainder of delete functions to behave in similar way, some other small tweaks
This commit is contained in:
parent
f052af6e02
commit
2485442086
23 changed files with 555 additions and 633 deletions
2
internal/cache/invalidate.go
vendored
2
internal/cache/invalidate.go
vendored
|
|
@ -198,7 +198,7 @@ func (c *Caches) OnInvalidateStatus(status *gtsmodel.Status) {
|
|||
// the media IDs in use before the media table is
|
||||
// aware of the status ID they are linked to.
|
||||
//
|
||||
// c.DB.Media().Invalidate("StatusID") will not work.
|
||||
// c.DB.Media.Invalidate("StatusID") will not work.
|
||||
c.DB.Media.InvalidateIDs("ID", status.AttachmentIDs)
|
||||
|
||||
if status.BoostOfID != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue