save correct inReplyToStatusId.
authorRoger Braun <roger@rogerbraun.net>
Thu, 18 May 2017 15:03:21 +0000 (17:03 +0200)
committerRoger Braun <roger@rogerbraun.net>
Thu, 18 May 2017 15:03:21 +0000 (17:03 +0200)
lib/pleroma/web/ostatus/ostatus.ex

index a709dac4ea2a6248fc2b3e214736908c8b45c69d..222e18350d9bf16ec314169a72480186da9f09b4 100644 (file)
@@ -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)