From 5d4674daa4868f5f7ab4ed85fbc278a209cbae65 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 1 Sep 2025 06:13:55 -0600 Subject: [PATCH] Update ApiV1StoryController, fix viewer pagination Fix cursor pagination --- app/Http/Controllers/Stories/StoryApiV1Controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Stories/StoryApiV1Controller.php b/app/Http/Controllers/Stories/StoryApiV1Controller.php index eeb8771a1..07e26cbf1 100644 --- a/app/Http/Controllers/Stories/StoryApiV1Controller.php +++ b/app/Http/Controllers/Stories/StoryApiV1Controller.php @@ -765,7 +765,8 @@ class StoryApiV1Controller extends Controller $viewers = StoryView::whereStoryId($story->id) ->orderByDesc('id') - ->cursorPaginate(10); + ->cursorPaginate(10) + ->withQueryString(); return StoryViewResource::collection($viewers); }