common api: utils: access inReplyTo object ID correctly
This commit is contained in:
parent
d6b266163b
commit
67038ae15e
@ -177,8 +177,10 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|
|||||||
}
|
}
|
||||||
|
|
||||||
if inReplyTo do
|
if inReplyTo do
|
||||||
|
inReplyToObject = Object.normalize(inReplyTo.data["object"])
|
||||||
|
|
||||||
object
|
object
|
||||||
|> Map.put("inReplyTo", inReplyTo.data["object"]["id"])
|
|> Map.put("inReplyTo", inReplyToObject.data["id"])
|
||||||
|> Map.put("inReplyToStatusId", inReplyTo.id)
|
|> Map.put("inReplyToStatusId", inReplyTo.id)
|
||||||
else
|
else
|
||||||
object
|
object
|
||||||
|
Loading…
Reference in New Issue
Block a user