forked from mirrors/akkoma
save correct inReplyToStatusId.
This commit is contained in:
parent
042cdf09ca
commit
b74125900c
|
@ -196,11 +196,11 @@ def handle_note(entry, doc \\ nil) do
|
||||||
}
|
}
|
||||||
|
|
||||||
object = if inReplyTo do
|
object = if inReplyTo do
|
||||||
replied_to_object = Object.get_cached_by_ap_id(inReplyTo)
|
replied_to_activity = Activity.get_create_activity_by_object_ap_id(inReplyTo)
|
||||||
if replied_to_object do
|
if replied_to_activity do
|
||||||
object
|
object
|
||||||
|> Map.put("inReplyTo", inReplyTo)
|
|> Map.put("inReplyTo", inReplyTo)
|
||||||
|> Map.put("inReplyToStatusId", replied_to_object.id)
|
|> Map.put("inReplyToStatusId", replied_to_activity.id)
|
||||||
else
|
else
|
||||||
object
|
object
|
||||||
|> Map.put("inReplyTo", inReplyTo)
|
|> Map.put("inReplyTo", inReplyTo)
|
||||||
|
|
Loading…
Reference in a new issue