1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update PublicApiController

This commit is contained in:
Daniel Supernault 2019-11-22 22:53:51 -07:00
parent 9fe113c3eb
commit 744435cdf5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -264,7 +264,7 @@ class PublicApiController extends Controller
} else { } else {
$res = PublicTimelineService::get(0,4); $res = PublicTimelineService::get(0,4);
} }
return response($res); return $res;
} }
if($min || $max) { if($min || $max) {
@ -331,7 +331,6 @@ class PublicApiController extends Controller
$fractal = new Fractal\Resource\Collection($timeline, new StatusTransformer()); $fractal = new Fractal\Resource\Collection($timeline, new StatusTransformer());
$res = $this->fractal->createData($fractal)->toArray(); $res = $this->fractal->createData($fractal)->toArray();
// $res = $timeline;
return response()->json($res); return response()->json($res);
} }