mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update PublicApiController
This commit is contained in:
parent
9fe113c3eb
commit
744435cdf5
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue