Fix timeline infinite scroll

This commit is contained in:
Daniel Supernault 2022-06-19 07:05:07 -06:00
parent bb1cccbe03
commit 03a85460af
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -401,6 +401,7 @@ class PublicApiController extends Controller
} }
$res = collect($feed) $res = collect($feed)
->take($limit)
->map(function($k) use($user) { ->map(function($k) use($user) {
$status = StatusService::get($k); $status = StatusService::get($k);
if($status && isset($status['account']) && $user) { if($status && isset($status['account']) && $user) {
@ -680,6 +681,7 @@ class PublicApiController extends Controller
} }
$res = collect($feed) $res = collect($feed)
->take($limit)
->map(function($k) use($user) { ->map(function($k) use($user) {
$status = StatusService::get($k); $status = StatusService::get($k);
if($status && isset($status['account']) && $user) { if($status && isset($status['account']) && $user) {