From 8c712b319899dd596ad89cf18b1a40c5d65d400d Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 25 Feb 2018 21:42:28 +0100 Subject: [PATCH] Fix context stitching. --- lib/pleroma/web/activity_pub/transmogrifier.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 6974c39b1..a9d9674d6 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -31,8 +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"]) + |> Map.put("conversation", replied_object.data["context"]) + |> Map.put("context", replied_object.data["context"]) e -> Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}") object