Explorar el Código

Merge pull request #6149 from pixelfed/staging

Update ApiV1StoryController, fix viewer pagination
(dan)iel (sup)ernault hace 3 semanas
padre
commit
e2fc2ceee8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Http/Controllers/Stories/StoryApiV1Controller.php

+ 2 - 1
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);
     }