Update AP Like transformer

This commit is contained in:
Daniel Supernault 2018-12-21 12:56:56 -07:00
parent da68aa1c26
commit b96e71c0ae
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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()
]; ];
} }
} }