mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 06:23:18 +00:00
Update AP Like transformer
This commit is contained in:
parent
da68aa1c26
commit
b96e71c0ae
1 changed files with 9 additions and 9 deletions
|
@ -7,13 +7,13 @@ use League\Fractal;
|
||||||
|
|
||||||
class Like extends Fractal\TransformerAbstract
|
class Like extends Fractal\TransformerAbstract
|
||||||
{
|
{
|
||||||
public function transform(LikeModel $like)
|
public function transform(LikeModel $like)
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||||
'type' => 'Like',
|
'type' => 'Like',
|
||||||
'actor' => $like->actor->permalink(),
|
'actor' => $like->actor->permalink(),
|
||||||
'object' => $like->status->url()
|
'object' => $like->status->url()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue