Update ApiV1Controller

This commit is contained in:
Daniel Supernault 2022-08-31 18:44:30 -06:00
parent c3391c036a
commit 61f230aa9e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -1937,7 +1937,7 @@ class ApiV1Controller extends Controller
->latest() ->latest()
->take(($limit * 2)) ->take(($limit * 2))
->get() ->get()
->map(function($s) use($pid) { ->map(function($s) use($pid, $napi) {
$status = $napi ? StatusService::get($s['id'], false) : StatusService::getMastodon($s['id'], false); $status = $napi ? StatusService::get($s['id'], false) : StatusService::getMastodon($s['id'], false);
if(!$status || !isset($status['account']) || !isset($status['account']['id'])) { if(!$status || !isset($status['account']) || !isset($status['account']['id'])) {
return false; return false;