mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 17:26:43 +00:00
26 lines
585 B
PHP
26 lines
585 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Transformer\Api;
|
||
|
|
||
|
use App\Profile;
|
||
|
use League\Fractal;
|
||
|
|
||
|
class RelationshipTransformer extends Fractal\TransformerAbstract
|
||
|
{
|
||
|
public function transform(Profile $profile)
|
||
|
{
|
||
|
return [
|
||
|
'id' => $profile->id,
|
||
|
'following' => null,
|
||
|
'followed_by' => null,
|
||
|
'blocking' => null,
|
||
|
'muting' => null,
|
||
|
'muting_notifications' => null,
|
||
|
'requested' => null,
|
||
|
'domain_blocking' => null,
|
||
|
'showing_reblogs' => null,
|
||
|
'endorsed' => null
|
||
|
];
|
||
|
}
|
||
|
}
|