ソースを参照

Merge pull request #6149 from pixelfed/staging

Update ApiV1StoryController, fix viewer pagination
(dan)iel (sup)ernault 3 週間 前
コミット
e2fc2ceee8
1 ファイル変更2 行追加1 行削除
  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);
     }