diff options
author | 2023-04-06 16:11:25 +0100 | |
---|---|---|
committer | 2023-04-06 17:11:25 +0200 | |
commit | e46323c207230b01e48ae1b8e5117a9774d9f157 (patch) | |
tree | 088c9476dd4650092b916394364582ee64a7b328 /internal/db | |
parent | [bugfix/chore] Refactor timeline code (#1656) (diff) | |
download | gotosocial-e46323c207230b01e48ae1b8e5117a9774d9f157.tar.xz |
[bugfix] visibility caching and hometimeline (#1675)v0.8.0-rc1
* fix visibility caching to use correct type key
Signed-off-by: kim <grufwub@gmail.com>
* check for ID check > max possible ID
Signed-off-by: kim <grufwub@gmail.com>
* update home timeline code to include relevant threads to owner (e.g. between mutuals/follows)
Signed-off-by: kim <grufwub@gmail.com>
---------
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/db')
-rw-r--r-- | internal/db/bundb/timeline.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |