From d2188e7ab35404fa790d68b24e44e055c83bd351 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 16 Feb 2022 04:41:36 -0700 Subject: [PATCH] Update PublicApiController --- app/Http/Controllers/PublicApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index dc2051a4..0bc48032 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/app/Http/Controllers/PublicApiController.php @@ -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);