Wire up inReplyToStatusIds for ostatus.
This commit is contained in:
parent
48f9df2391
commit
042cdf09ca
|
@ -196,7 +196,15 @@ def handle_note(entry, doc \\ nil) do
|
||||||
}
|
}
|
||||||
|
|
||||||
object = if inReplyTo 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
|
else
|
||||||
object
|
object
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue