ActivityPub: Fallback for unhandled outgoing activities.
authorlain <lain@soykaf.club>
Sun, 18 Feb 2018 14:20:03 +0000 (15:20 +0100)
committerlain <lain@soykaf.club>
Sun, 18 Feb 2018 14:20:03 +0000 (15:20 +0100)
lib/pleroma/web/activity_pub/transmogrifier.ex

index fc04cc9a119db51ee10581d4bee71010be908b97..076bd2ea8bac10f0cb01e4d1aeb6da15471c9996 100644 (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")