Commit 67038ae1 authored by kaniini's avatar kaniini

common api: utils: access inReplyTo object ID correctly

parent d6b26616
......@@ -177,8 +177,10 @@ defmodule Pleroma.Web.CommonAPI.Utils do
}
if inReplyTo do
inReplyToObject = Object.normalize(inReplyTo.data["object"])
object
|> Map.put("inReplyTo", inReplyTo.data["object"]["id"])
|> Map.put("inReplyTo", inReplyToObject.data["id"])
|> Map.put("inReplyToStatusId", inReplyTo.id)
else
object
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment