v. basic implementation of home timeline

This commit is contained in:
tsmethurst 2021-05-21 23:03:14 +02:00
commit c16b8325ae
8 changed files with 264 additions and 1 deletions

View file

@ -278,6 +278,10 @@ type DB interface {
// This slice will be unfiltered, not taking account of blocks and whatnot, so filter it before serving it back to a user.
WhoFavedStatus(status *gtsmodel.Status) ([]*gtsmodel.Account, error)
// GetHomeTimelineForAccount fetches the account's HOME timeline -- ie., posts and replies from people they *follow*.
// It will use the given filters and try to return as many statuses up to the limit as possible.
GetHomeTimelineForAccount(accountID string, maxID string, sinceID string, minID string, limit int, local bool) ([]*gtsmodel.Status, error)
/*
USEFUL CONVERSION FUNCTIONS
*/