From 03a85460af9dbb55c412c427e77b88ab2a762cd9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 19 Jun 2022 07:05:07 -0600 Subject: [PATCH] Fix timeline infinite scroll --- app/Http/Controllers/PublicApiController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index 5171509d3..8f9507feb 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -401,6 +401,7 @@ class PublicApiController extends Controller } $res = collect($feed) + ->take($limit) ->map(function($k) use($user) { $status = StatusService::get($k); if($status && isset($status['account']) && $user) { @@ -680,6 +681,7 @@ class PublicApiController extends Controller } $res = collect($feed) + ->take($limit) ->map(function($k) use($user) { $status = StatusService::get($k); if($status && isset($status['account']) && $user) {