One more fix.
authorlain <lain@soykaf.club>
Sun, 25 Feb 2018 21:20:38 +0000 (22:20 +0100)
committerlain <lain@soykaf.club>
Sun, 25 Feb 2018 21:20:38 +0000 (22:20 +0100)
lib/pleroma/web/activity_pub/transmogrifier.ex

index a9d9674d612377052f0af296f73cce4adcac8db3..abc9b786e482ee35d61dcdb57eac27ffa90f7962 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["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