From b74125900c66a59c150fe7936037da95035c1a7d Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 18 May 2017 17:03:21 +0200 Subject: [PATCH] save correct inReplyToStatusId. --- lib/pleroma/web/ostatus/ostatus.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pleroma/web/ostatus/ostatus.ex b/lib/pleroma/web/ostatus/ostatus.ex index a709dac4e..222e18350 100644 --- a/lib/pleroma/web/ostatus/ostatus.ex +++ b/lib/pleroma/web/ostatus/ostatus.ex @@ -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)