simplify timeline cache loading, fix lo/hi returns, fix timeline invalidation side-effects missing for some federated actions

This commit is contained in:
kim 2025-04-02 17:25:33 +01:00
commit 53817c23fd
12 changed files with 311 additions and 279 deletions

View file

@ -365,13 +365,6 @@ func loadStatusTimelinePage(
return nil, err
}
// The order we return from the database and
// timeline caches differs depending on ordering,
// but the caller always expects DESCENDING.
if order.Ascending() {
slices.Reverse(statusIDs)
}
// Fetch statuses from DB / cache with given IDs.
return state.DB.GetStatusesByIDs(ctx, statusIDs)
}