mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update PublicApiController
This commit is contained in:
parent
6fce4e2286
commit
cc0225a9bd
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ class PublicApiController extends Controller
|
||||||
$filtered = $ids->filter(function($v) {
|
$filtered = $ids->filter(function($v) {
|
||||||
return $v != Auth::user()->profile->id;
|
return $v != Auth::user()->profile->id;
|
||||||
});
|
});
|
||||||
$relations = Profile::findOrFail($filtered->all());
|
$relations = Profile::whereNull('status')->findOrFail($filtered->all());
|
||||||
$fractal = new Fractal\Resource\Collection($relations, new RelationshipTransformer());
|
$fractal = new Fractal\Resource\Collection($relations, new RelationshipTransformer());
|
||||||
$res = $this->fractal->createData($fractal)->toArray();
|
$res = $this->fractal->createData($fractal)->toArray();
|
||||||
return response()->json($res);
|
return response()->json($res);
|
||||||
|
|
Loading…
Reference in a new issue