From e46323c207230b01e48ae1b8e5117a9774d9f157 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 6 Apr 2023 16:11:25 +0100 Subject: [bugfix] visibility caching and hometimeline (#1675) * fix visibility caching to use correct type key Signed-off-by: kim * check for ID check > max possible ID Signed-off-by: kim * update home timeline code to include relevant threads to owner (e.g. between mutuals/follows) Signed-off-by: kim --------- Signed-off-by: kim --- internal/db/bundb/timeline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db') diff --git a/internal/db/bundb/timeline.go b/internal/db/bundb/timeline.go index fabfe2797..87e7751d2 100644 --- a/internal/db/bundb/timeline.go +++ b/internal/db/bundb/timeline.go @@ -61,7 +61,7 @@ func (t *timelineDB) GetHomeTimeline(ctx context.Context, accountID string, maxI bun.Ident("follow.account_id"), accountID) - if maxID == "" || maxID == id.Highest { + if maxID == "" || maxID >= id.Highest { const future = 24 * time.Hour var err error -- cgit v1.2.3