forked from mirror/pixelfed
Update ApiV1Controller
This commit is contained in:
parent
32bbcc12c3
commit
da6312c2b0
1 changed files with 2 additions and 2 deletions
|
@ -2532,7 +2532,7 @@ class ApiV1Controller extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = $ids->map(function($post) use($pid) {
|
$data = $ids->map(function($post) use($pid) {
|
||||||
$status = StatusService::getMastodon($post->id);
|
$status = StatusService::get($post->id);
|
||||||
|
|
||||||
if(!$status || !isset($status['id'])) {
|
if(!$status || !isset($status['id'])) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -2542,7 +2542,7 @@ class ApiV1Controller extends Controller
|
||||||
return $status;
|
return $status;
|
||||||
})
|
})
|
||||||
->filter(function($post) {
|
->filter(function($post) {
|
||||||
return $post && isset($post['id']);
|
return $post && isset($post['id']) && isset($post['account']);
|
||||||
})
|
})
|
||||||
->values();
|
->values();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue