Browse Source

Update Like AP transformer

Daniel Supernault 6 years ago
parent
commit
a5e8b2eec9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Transformer/ActivityPub/Verb/Like.php

+ 1 - 0
app/Transformer/ActivityPub/Verb/Like.php

@@ -11,6 +11,7 @@ class Like extends Fractal\TransformerAbstract
 	{
 		return [
 			'@context'  => 'https://www.w3.org/ns/activitystreams',
+			'id'		=> $like->actor->permalink('#likes/'.$like->id),
 			'type' 		=> 'Like',
 			'actor'		=> $like->actor->permalink(),
 			'object'	=> $like->status->url()