ActivityPub: Implement outgoing likes.
authorlain <lain@soykaf.club>
Sat, 17 Feb 2018 19:22:14 +0000 (20:22 +0100)
committerlain <lain@soykaf.club>
Sat, 17 Feb 2018 19:22:14 +0000 (20:22 +0100)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 82fcf0898af660e64b8fa75e36dea14b98bc14c4..b5a126cb6ff2234196e029c9ae8d85904d76f56c 100644 (file)
@@ -96,7 +96,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
     {:ok, data}
   end
 
-  def prepare_outgoing(%{"type" => type} = data) when type in ["Follow", "Accept"] do
+  def prepare_outgoing(%{"type" => type} = data) when type in ["Follow", "Accept", "Like"] do
     data = data
     |> Map.put("@context", "https://www.w3.org/ns/activitystreams")