From: lain Date: Sat, 17 Feb 2018 19:22:14 +0000 (+0100) Subject: ActivityPub: Implement outgoing likes. X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=32b995fbb6488e64d8caefe1d2ef270a83fbe3c2;p=akkoma ActivityPub: Implement outgoing likes. --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 82fcf0898..b5a126cb6 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -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")