From 61f230aa9eeef634101fb645824f596a80740840 Mon Sep 17 00:00:00 2001 From: Daniel Supernault <877217+dansup@users.noreply.github.com> Date: Wed, 31 Aug 2022 18:44:30 -0600 Subject: [PATCH] Update ApiV1Controller --- app/Http/Controllers/Api/ApiV1Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 546792ed7..80e76a9b2 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1937,7 +1937,7 @@ class ApiV1Controller extends Controller ->latest() ->take(($limit * 2)) ->get() - ->map(function($s) use($pid) { + ->map(function($s) use($pid, $napi) { $status = $napi ? StatusService::get($s['id'], false) : StatusService::getMastodon($s['id'], false); if(!$status || !isset($status['account']) || !isset($status['account']['id'])) { return false;