From: Haelwenn (lanodan) Monnier Date: Mon, 21 Jan 2019 05:39:00 +0000 (+0100) Subject: Activity: all_by_object_ap_id_q/1 → create_by_object_ap_id/1 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4ad5a0abb99eb90b1b1bebbad79acc67c16cf945;p=akkoma Activity: all_by_object_ap_id_q/1 → create_by_object_ap_id/1 --- diff --git a/lib/pleroma/activity.ex b/lib/pleroma/activity.ex index 3be6fb82b..588027de1 100644 --- a/lib/pleroma/activity.ex +++ b/lib/pleroma/activity.ex @@ -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