update remainder of delete functions to behave in similar way, some other small tweaks

This commit is contained in:
kim 2024-09-13 15:41:20 +01:00
commit 2485442086
23 changed files with 555 additions and 633 deletions

View file

@ -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 != "" {