1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-29 19:25:23 +01:00

ActivityPub: Fallback for unhandled outgoing activities.

This commit is contained in:
lain 2018-02-18 15:20:03 +01:00
parent 2997fe1ba9
commit 44586f2967

View File

@ -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")