Commit b7412590 authored by lain's avatar lain

save correct inReplyToStatusId.

parent 042cdf09
......@@ -196,11 +196,11 @@ def handle_note(entry, doc \\ nil) do
}
object = if inReplyTo do
replied_to_object = Object.get_cached_by_ap_id(inReplyTo)
if replied_to_object do
replied_to_activity = Activity.get_create_activity_by_object_ap_id(inReplyTo)
if replied_to_activity do
object
|> Map.put("inReplyTo", inReplyTo)
|> Map.put("inReplyToStatusId", replied_to_object.id)
|> Map.put("inReplyToStatusId", replied_to_activity.id)
else
object
|> Map.put("inReplyTo", inReplyTo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment