From dd97193311fec3c1fc44f9b503cdf5d4aa7da376 Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 25 Feb 2018 13:35:08 +0100 Subject: [PATCH] Set conversation to parent conversation. --- lib/pleroma/web/activity_pub/transmogrifier.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 464842f69..6714319fb 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -31,6 +31,8 @@ def fix_in_reply_to(%{"inReplyTo" => in_reply_to_id} = object) when not is_nil(i |> Map.put("inReplyTo", replied_object.data["id"]) |> Map.put("inReplyToAtomUri", object["inReplyToAtomUri"] || in_reply_to_id) |> Map.put("inReplyToStatusId", activity.id) + |> Map.put("conversation", replied_object.data["conversation"]) + |> Map.put("context", replied_object.data["conversation"]) e -> Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}") object