Fix context stitching.
authorlain <lain@soykaf.club>
Sun, 25 Feb 2018 20:42:28 +0000 (21:42 +0100)
committerlain <lain@soykaf.club>
Sun, 25 Feb 2018 20:42:28 +0000 (21:42 +0100)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 6974c39b10fb1d266e68289ccc0139d5a5a61830..a9d9674d612377052f0af296f73cce4adcac8db3 100644 (file)
@@ -31,8 +31,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
         |> 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