Wire up inReplyToStatusIds for ostatus.
This commit is contained in:
parent
48f9df2391
commit
042cdf09ca
1 changed files with 9 additions and 1 deletions
|
@ -196,7 +196,15 @@ def handle_note(entry, doc \\ nil) do
|
|||
}
|
||||
|
||||
object = if inReplyTo do
|
||||
Map.put(object, "inReplyTo", inReplyTo)
|
||||
replied_to_object = Object.get_cached_by_ap_id(inReplyTo)
|
||||
if replied_to_object do
|
||||
object
|
||||
|> Map.put("inReplyTo", inReplyTo)
|
||||
|> Map.put("inReplyToStatusId", replied_to_object.id)
|
||||
else
|
||||
object
|
||||
|> Map.put("inReplyTo", inReplyTo)
|
||||
end
|
||||
else
|
||||
object
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue