mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +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) {
|
||||
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());
|
||||
$res = $this->fractal->createData($fractal)->toArray();
|
||||
return response()->json($res);
|
||||
|
|
Loading…
Reference in a new issue