mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 08:44:49 +00:00
Merge pull request #1547 from pixelfed/frontend-ui-refactor
Update PublicApiController
This commit is contained in:
commit
16d6e6bd3e
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