mirror of https://github.com/pixelfed/pixelfed.git
Update ApiV1Controller, wrap ancestor in array
This commit is contained in:
parent
6dd83d32e3
commit
00a96a15f0
|
@ -1534,7 +1534,9 @@ class ApiV1Controller extends Controller
|
|||
$ancestors = $status->parent();
|
||||
if($ancestors) {
|
||||
$ares = new Fractal\Resource\Item($ancestors, new StatusTransformer());
|
||||
$ancestors = $this->fractal->createData($ares)->toArray();
|
||||
$ancestors = [
|
||||
$this->fractal->createData($ares)->toArray()
|
||||
];
|
||||
} else {
|
||||
$ancestors = [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue