From 8e33b99bcafd194981e998f718df9a740c4b6f15 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 17 Mar 2025 00:33:30 +0800 Subject: [PATCH] :bug: Try to fix cursor return last same content --- pkg/internal/http/api/recommendation_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/http/api/recommendation_api.go b/pkg/internal/http/api/recommendation_api.go index 409da1a..1f2c2de 100644 --- a/pkg/internal/http/api/recommendation_api.go +++ b/pkg/internal/http/api/recommendation_api.go @@ -92,7 +92,7 @@ func getRecommendationFeed(c *fiber.Ctx) error { var cursorTime *time.Time if cursor > 0 { - cursorTime = lo.ToPtr(time.UnixMilli(int64(cursor))) + cursorTime = lo.ToPtr(time.UnixMilli(int64(cursor) + 1)) } var userId *uint