Set conversation to parent conversation.

This commit is contained in:
lain 2018-02-25 13:35:08 +01:00
parent b76de1ecd3
commit dd97193311

View file

@ -31,6 +31,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|> Map.put("inReplyTo", replied_object.data["id"]) |> Map.put("inReplyTo", replied_object.data["id"])
|> Map.put("inReplyToAtomUri", object["inReplyToAtomUri"] || in_reply_to_id) |> Map.put("inReplyToAtomUri", object["inReplyToAtomUri"] || in_reply_to_id)
|> Map.put("inReplyToStatusId", activity.id) |> Map.put("inReplyToStatusId", activity.id)
|> Map.put("conversation", replied_object.data["conversation"])
|> Map.put("context", replied_object.data["conversation"])
e -> e ->
Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}") Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}")
object object