From 0d69bbc1fbfe2eef205b910d3e5b3b1503e02cef Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 25 Feb 2018 22:20:38 +0100 Subject: [PATCH] One more fix. --- 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 a9d9674d6..abc9b786e 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["context"]) - |> Map.put("context", replied_object.data["context"]) + |> Map.put("conversation", replied_object.data["context"] || object["conversation"]) + |> Map.put("context", replied_object.data["context"] || object["conversation"]) e -> Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}") object