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