mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 15:32:25 -05:00
swap the lo, hi values 🤦
This commit is contained in:
parent
53817c23fd
commit
96250a941c
1 changed files with 7 additions and 7 deletions
14
internal/cache/timeline/status.go
vendored
14
internal/cache/timeline/status.go
vendored
|
|
@ -409,8 +409,8 @@ func (t *StatusTimeline) Load(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set initial lo, hi values.
|
// Set initial lo, hi values.
|
||||||
hi = metas[len(metas)-1].ID
|
lo = metas[len(metas)-1].ID
|
||||||
lo = metas[0].ID
|
hi = metas[0].ID
|
||||||
|
|
||||||
// Update paging parameters used for next database query.
|
// Update paging parameters used for next database query.
|
||||||
nextPageParams(nextPg, metas[len(metas)-1].ID, order)
|
nextPageParams(nextPg, metas[len(metas)-1].ID, order)
|
||||||
|
|
@ -453,10 +453,10 @@ func (t *StatusTimeline) Load(
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if lo == "" {
|
if hi == "" {
|
||||||
// Set min returned paging
|
// Set hi returned paging
|
||||||
// value if not already set.
|
// value if not already set.
|
||||||
lo = statuses[0].ID
|
hi = statuses[0].ID
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update nextPg cursor parameter for next database query.
|
// Update nextPg cursor parameter for next database query.
|
||||||
|
|
@ -496,8 +496,8 @@ func (t *StatusTimeline) Load(
|
||||||
// here. Even if below limit.
|
// here. Even if below limit.
|
||||||
if len(apiStatuses) > 0 {
|
if len(apiStatuses) > 0 {
|
||||||
|
|
||||||
// Set returned hi status paging value.
|
// Set returned lo status paging value.
|
||||||
hi = apiStatuses[len(apiStatuses)-1].ID
|
lo = apiStatuses[len(apiStatuses)-1].ID
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue