From: lain Date: Sun, 18 Feb 2018 14:20:03 +0000 (+0100) Subject: ActivityPub: Fallback for unhandled outgoing activities. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=44586f2967cf035f47cb63d9c74f0bb4c9b3ddb8;p=akkoma ActivityPub: Fallback for unhandled outgoing activities. --- diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index fc04cc9a1..076bd2ea8 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -114,7 +114,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do {:ok, data} end - def prepare_outgoing(%{"type" => type} = data) when type in ["Follow", "Accept", "Like", "Announce"] do + def prepare_outgoing(%{"type" => type} = data) do data = data |> Map.put("@context", "https://www.w3.org/ns/activitystreams")