mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-19 16:10:59 +00:00
common api: utils: access inReplyTo object ID correctly
This commit is contained in:
parent
d6b266163b
commit
67038ae15e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue