1
0
Fork 0

Merge pull request #3638 from pixelfed/staging

Update ApiV1Controller
This commit is contained in:
daniel 2022-08-31 18:45:26 -06:00 committed by GitHub
commit 3e9fd02827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;