From 8911c9194f44bba2cf3129d722817ab4e8a73519 Mon Sep 17 00:00:00 2001 From: kim Date: Fri, 25 Apr 2025 15:34:53 +0100 Subject: [PATCH] use a plus1hULID() instead of 24h --- internal/cache/timeline/status.go | 2 +- internal/cache/timeline/timeline.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/cache/timeline/status.go b/internal/cache/timeline/status.go index 6a539bcc5..071fc5a36 100644 --- a/internal/cache/timeline/status.go +++ b/internal/cache/timeline/status.go @@ -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 diff --git a/internal/cache/timeline/timeline.go b/internal/cache/timeline/timeline.go index dfb383fcb..4f8797e82 100644 --- a/internal/cache/timeline/timeline.go +++ b/internal/cache/timeline/timeline.go @@ -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) }