mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 16:44:50 +00:00
commit
3e9fd02827
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue