use a plus1hULID() instead of 24h

This commit is contained in:
kim 2025-04-25 15:34:53 +01:00
commit 8911c9194f
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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)
}