From 39b4dbf35485c05b51318774e9e680a212a8fec7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 12 Nov 2018 22:26:19 -0700 Subject: [PATCH] Add AP Like Transformer --- app/Transformer/ActivityPub/Verb/Like.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/Transformer/ActivityPub/Verb/Like.php diff --git a/app/Transformer/ActivityPub/Verb/Like.php b/app/Transformer/ActivityPub/Verb/Like.php new file mode 100644 index 00000000..5ddebe9a --- /dev/null +++ b/app/Transformer/ActivityPub/Verb/Like.php @@ -0,0 +1,19 @@ + 'https://www.w3.org/ns/activitystreams', + 'type' => 'Like', + 'actor' => $like->actor->permalink(), + 'object' => $like->status->url() + ]; + } +} \ No newline at end of file