forked from mirror/pixelfed
Update AP Like transformer
This commit is contained in:
parent
da68aa1c26
commit
b96e71c0ae
|
@ -7,13 +7,13 @@ use League\Fractal;
|
|||
|
||||
class Like extends Fractal\TransformerAbstract
|
||||
{
|
||||
public function transform(LikeModel $like)
|
||||
{
|
||||
return [
|
||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||
'type' => 'Like',
|
||||
'actor' => $like->actor->permalink(),
|
||||
'object' => $like->status->url()
|
||||
];
|
||||
}
|
||||
public function transform(LikeModel $like)
|
||||
{
|
||||
return [
|
||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||
'type' => 'Like',
|
||||
'actor' => $like->actor->permalink(),
|
||||
'object' => $like->status->url()
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue