From 32b995fbb6488e64d8caefe1d2ef270a83fbe3c2 Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 17 Feb 2018 20:22:14 +0100 Subject: [PATCH] ActivityPub: Implement outgoing likes. --- lib/pleroma/web/activity_pub/transmogrifier.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")