mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:42:25 -05:00
use a plus1hULID() instead of 24h
This commit is contained in:
parent
6e26972fcd
commit
8911c9194f
2 changed files with 4 additions and 4 deletions
2
internal/cache/timeline/status.go
vendored
2
internal/cache/timeline/status.go
vendored
|
|
@ -233,7 +233,7 @@ func (t *StatusTimeline) preload(
|
|||
page := new(paging.Page)
|
||||
order := paging.OrderDescending
|
||||
page.Max.Order = order
|
||||
page.Max.Value = plus24hULID()
|
||||
page.Max.Value = plus1hULID()
|
||||
page.Min.Order = order
|
||||
page.Min.Value = ""
|
||||
page.Limit = 100
|
||||
|
|
|
|||
6
internal/cache/timeline/timeline.go
vendored
6
internal/cache/timeline/timeline.go
vendored
|
|
@ -25,9 +25,9 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/paging"
|
||||
)
|
||||
|
||||
// plus24hULID returns a ULID for now+24h.
|
||||
func plus24hULID() string {
|
||||
t := time.Now().Add(24 * time.Hour)
|
||||
// plus1hULID returns a ULID for now+1h.
|
||||
func plus1hULID() string {
|
||||
t := time.Now().Add(time.Hour)
|
||||
return id.NewULIDFromTime(t)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue