From c7da64922f8b41daaee1cb8fc2961f7fa1336737 Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 9 Jul 2021 18:32:48 +0200 Subject: favourites GET implementation (#95) --- internal/timeline/index.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/timeline/index.go') diff --git a/internal/timeline/index.go b/internal/timeline/index.go index 261722b74..8c6b0d578 100644 --- a/internal/timeline/index.go +++ b/internal/timeline/index.go @@ -23,7 +23,7 @@ func (t *timeline) IndexBefore(statusID string, include bool, amount int) error grabloop: for len(filtered) < amount { - statuses, err := t.db.GetStatusesWhereFollowing(t.accountID, "", offsetStatus, "", amount, false) + statuses, err := t.db.GetHomeTimelineForAccount(t.accountID, "", offsetStatus, "", amount, false) if err != nil { if _, ok := err.(db.ErrNoEntries); ok { break grabloop // we just don't have enough statuses left in the db so index what we've got and then bail @@ -58,7 +58,7 @@ func (t *timeline) IndexBehind(statusID string, amount int) error { grabloop: for len(filtered) < amount { - statuses, err := t.db.GetStatusesWhereFollowing(t.accountID, offsetStatus, "", "", amount, false) + statuses, err := t.db.GetHomeTimelineForAccount(t.accountID, offsetStatus, "", "", amount, false) if err != nil { if _, ok := err.(db.ErrNoEntries); ok { break grabloop // we just don't have enough statuses left in the db so index what we've got and then bail -- cgit v1.2.3