From: Roger Braun Date: Thu, 18 May 2017 15:03:21 +0000 (+0200) Subject: save correct inReplyToStatusId. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b74125900c66a59c150fe7936037da95035c1a7d;p=akkoma save correct inReplyToStatusId. --- 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 @@ defmodule Pleroma.Web.OStatus 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)