Wire up inReplyToStatusIds for ostatus.

This commit is contained in:
Roger Braun 2017-05-18 16:58:30 +02:00
parent 48f9df2391
commit 042cdf09ca
1 changed files with 9 additions and 1 deletions

View File

@ -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