Activity: all_by_object_ap_id_q/1 → create_by_object_ap_id/1
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 21 Jan 2019 05:39:00 +0000 (06:39 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 21 Jan 2019 06:51:01 +0000 (07:51 +0100)
lib/pleroma/activity.ex

index 3be6fb82b05d40d7497488dcaba492425e24b8fc..588027de145a2d483f2bc55eb44aa4a0a3ac7ed2 100644 (file)
@@ -36,10 +36,7 @@ defmodule Pleroma.Activity do
     )
   end
 
-  # TODO:
-  # Go through these and fix them everywhere.
-  # Wrong name, only returns create activities
-  def all_by_object_ap_id_q(ap_id) do
+  def create_by_object_ap_id(ap_id) do
     from(
       activity in Activity,
       where:
@@ -67,7 +64,7 @@ defmodule Pleroma.Activity do
   end
 
   def get_all_by_object_ap_id(ap_id) do
-    Repo.all(all_by_object_ap_id_q(ap_id))
+    Repo.all(create_by_object_ap_id(ap_id))
   end
 
   def create_activity_by_object_id_query(ap_ids) do