Skip to content
Snippets Groups Projects
Commit 042cdf09 authored by lain's avatar lain
Browse files

Wire up inReplyToStatusIds for ostatus.

parent 48f9df23
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,15 @@ defmodule Pleroma.Web.OStatus 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment