mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-03 07:08:06 -06:00
simplify timeline cache loading, fix lo/hi returns, fix timeline invalidation side-effects missing for some federated actions
This commit is contained in:
parent
f8af213259
commit
53817c23fd
12 changed files with 311 additions and 279 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue