Add debug logs to timeline rendering to assist debugging
[akkoma] / lib / pleroma / activity.ex
index 0a376be04a6a34f32a743c675065e54193d41dd8..c94667fb9f177be171898c9b6b4d42766a9bb1a0 100644 (file)
@@ -277,14 +277,13 @@ defmodule Pleroma.Activity do
 
   def get_create_by_object_ap_id_with_object(_), do: nil
 
-  def get_local_create_by_object_ap_id_with_object(ap_id) when is_binary(ap_id) do
+  def get_local_create_by_object_ap_id(ap_id) when is_binary(ap_id) do
     ap_id
-    |> create_by_object_ap_id_with_object()
+    |> create_by_object_ap_id()
     |> where(local: true)
     |> Repo.one()
   end
 
-
   @spec create_by_id_with_object(String.t()) :: t() | nil
   def create_by_id_with_object(id) do
     get_by_id_with_opts(id, preload: [:object], filter: [type: "Create"])