mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-04-27 11:34:43 +00:00
shift around some logic to make sure things aren't accidentally left set
This commit is contained in:
parent
13d5adbfe0
commit
d725bf22a6
1 changed files with 5 additions and 5 deletions
10
internal/cache/timeline/status.go
vendored
10
internal/cache/timeline/status.go
vendored
|
@ -346,6 +346,11 @@ func (t *StatusTimeline) Load(
|
|||
nextPg.Min.Value = lo
|
||||
nextPg.Max.Value = hi
|
||||
|
||||
// Reset lo, hi values from being
|
||||
// used as input arguments, ready
|
||||
// to be updated for return.
|
||||
lo, hi = "", ""
|
||||
|
||||
// Interstitial meta objects.
|
||||
var metas []*StatusMeta
|
||||
|
||||
|
@ -374,11 +379,6 @@ func (t *StatusTimeline) Load(
|
|||
dir,
|
||||
)
|
||||
|
||||
// Reset lo, hi values from being
|
||||
// used as input arguments, ready
|
||||
// to be updated for return.
|
||||
lo, hi = "", ""
|
||||
|
||||
if len(metas) > 0 {
|
||||
// Before we can do any filtering, we need
|
||||
// to load status models for cached entries.
|
||||
|
|
Loading…
Reference in a new issue