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 @@ def make_note_data(
|
|||
}
|
||||
|
||||
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