forked from mirror/pixelfed
Update ApiV1Controller, wrap ancestor in array
This commit is contained in:
parent
6dd83d32e3
commit
00a96a15f0
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue