mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update Api RelationshipTransformer
This commit is contained in:
parent
34419ce2cc
commit
16b426ec1e
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ class RelationshipTransformer extends Fractal\TransformerAbstract
|
|||
public function transform(Profile $profile)
|
||||
{
|
||||
$auth = Auth::check();
|
||||
if(!$auth) {
|
||||
return [];
|
||||
}
|
||||
$user = $auth ? Auth::user()->profile : false;
|
||||
$requested = false;
|
||||
if($user) {
|
||||
|
|
Loading…
Reference in a new issue