mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
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) {
|
||||
$status = StatusService::getMastodon($post->id);
|
||||
$status = StatusService::get($post->id);
|
||||
|
||||
if(!$status || !isset($status['id'])) {
|
||||
return false;
|
||||
|
@ -2542,7 +2542,7 @@ class ApiV1Controller extends Controller
|
|||
return $status;
|
||||
})
|
||||
->filter(function($post) {
|
||||
return $post && isset($post['id']);
|
||||
return $post && isset($post['id']) && isset($post['account']);
|
||||
})
|
||||
->values();
|
||||
|
||||
|
|
Loading…
Reference in a new issue