mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
390 B
PHTML
19 lines
390 B
PHTML
7 years ago
|
<?php
|
||
|
|
||
|
namespace App\Transformer\Api;
|
||
|
|
||
|
use App\Profile;
|
||
|
use League\Fractal;
|
||
|
|
||
|
class MentionTransformer extends Fractal\TransformerAbstract
|
||
|
{
|
||
|
public function transform(Profile $profile)
|
||
|
{
|
||
|
return [
|
||
|
'id' => $profile->id,
|
||
|
'url' => $profile->url(),
|
||
|
'username' => $profile->username,
|
||
|
'acct' => $profile->username,
|
||
|
];
|
||
|
}
|
||
|
}
|