Update PublicApiController

This commit is contained in:
Daniel Supernault 2022-02-16 04:41:36 -07:00
parent 03b08293ad
commit d2188e7ab3
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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);