mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update PublicApiController
This commit is contained in:
parent
03b08293ad
commit
d2188e7ab3
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ class PublicApiController extends Controller
|
|||
->paginate($limit);
|
||||
}
|
||||
|
||||
$resource = new Fractal\Resource\Collection($replies, new StatusTransformer(), 'data');
|
||||
$resource = new Fractal\Resource\Collection($replies, new StatusStatelessTransformer(), 'data');
|
||||
$resource->setPaginator(new IlluminatePaginatorAdapter($replies));
|
||||
$res = $this->fractal->createData($resource)->toArray();
|
||||
return response()->json($res, 200, [], JSON_PRETTY_PRINT);
|
||||
|
|
Loading…
Reference in a new issue