aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsxsdv1 <sxsdv1@gmail.com>2019-01-12 17:52:30 +0100
committersxsdv1 <sxsdv1@gmail.com>2019-01-12 20:24:32 +0100
commit1eb7318831e7239ec929457f6298fb05cb461b43 (patch)
treecb6e6206c5818a48d5349a4c2c1d4dcb20f31bdc /lib
parent19b6a8239387869c69c6885044ee488d097b723f (diff)
downloadpleroma-1eb7318831e7239ec929457f6298fb05cb461b43.tar.gz
Prepare all types objects before serialising
Activities returned from inbox can include other types of objects like Article
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/transmogrifier.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex
index 87b7fc07f..b0f8c59cc 100644
--- a/lib/pleroma/web/activity_pub/transmogrifier.ex
+++ b/lib/pleroma/web/activity_pub/transmogrifier.ex
@@ -641,7 +641,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
# internal -> Mastodon
# """
- def prepare_outgoing(%{"type" => "Create", "object" => %{"type" => "Note"} = object} = data) do
+ def prepare_outgoing(%{"type" => "Create", "object" => object} = data) do
object =
object
|> prepare_object