From f4319740ab02d680961781861335285f618f5f48 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 18 Jul 2023 09:43:17 +0100 Subject: [bugfix] more robust list timeline invalidation (#1995) --- internal/cache/gts.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/cache/gts.go') diff --git a/internal/cache/gts.go b/internal/cache/gts.go index 4b2e65b9c..8082a9fdf 100644 --- a/internal/cache/gts.go +++ b/internal/cache/gts.go @@ -262,6 +262,7 @@ func (c *GTSCaches) initEmoji() { {Name: "URI"}, {Name: "Shortcode.Domain"}, {Name: "ImageStaticURL"}, + {Name: "CategoryID", Multi: true}, }, func(e1 *gtsmodel.Emoji) *gtsmodel.Emoji { e2 := new(gtsmodel.Emoji) *e2 = *e1 @@ -338,6 +339,8 @@ func (c *GTSCaches) initList() { func (c *GTSCaches) initListEntry() { c.listEntry = result.New([]result.Lookup{ {Name: "ID"}, + {Name: "ListID", Multi: true}, + {Name: "FollowID", Multi: true}, }, func(l1 *gtsmodel.ListEntry) *gtsmodel.ListEntry { l2 := new(gtsmodel.ListEntry) *l2 = *l1 -- cgit v1.2.3