Browse Source

fix-up some comments referring to old logic

pull/3941/head
kim 1 year ago
parent
commit
4a09a8c1b5
  1. 9
      internal/cache/timeline/status.go

9
internal/cache/timeline/status.go vendored

@ -387,13 +387,10 @@ func (t *StatusTimeline) Load(
return nil, "", "", gtserror.Newf("error loading statuses: %w", err)
}
// Set initial lo, hi values.
// Set returned lo, hi values.
lo = metas[len(metas)-1].ID
hi = metas[0].ID
// Update paging parameters used for next database query.
nextPageParams(nextPg, metas[len(metas)-1].ID, order)
// Allocate slice of expected required API models.
apiStatuses = make([]*apimodel.Status, 0, len(metas))
@ -522,9 +519,7 @@ func loadStatusTimeline(
continue
}
// Convert to our cache type,
// these will get inserted into
// the cache in prepare() below.
// Convert to our interstitial meta type.
metas = toStatusMeta(metas[:0], statuses)
// Prepare frontend API models for

Loading…
Cancel
Save