mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02: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)
|
public function transform(Profile $profile)
|
||||||
{
|
{
|
||||||
$auth = Auth::check();
|
$auth = Auth::check();
|
||||||
|
if(!$auth) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
$user = $auth ? Auth::user()->profile : false;
|
$user = $auth ? Auth::user()->profile : false;
|
||||||
$requested = false;
|
$requested = false;
|
||||||
if($user) {
|
if($user) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue