Activity: all_by_object_ap_id/1 → get_all_by_object_ap_id/1

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-01-21 06:29:05 +01:00
commit b82c6dc536
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
4 changed files with 4 additions and 5 deletions

View file

@ -67,8 +67,7 @@ defmodule Pleroma.Activity do
)
end
# Wrong name plz fix thx
def all_by_object_ap_id(ap_id) do
def get_all_by_object_ap_id(ap_id) do
Repo.all(all_by_object_ap_id_q(ap_id))
end

View file

@ -198,7 +198,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
# Update activities that already had this. Could be done in a seperate process.
# Alternatively, just don't do this and fetch the current object each time. Most
# could probably be taken from cache.
relevant_activities = Activity.all_by_object_ap_id(id)
relevant_activities = Activity.get_all_by_object_ap_id(id)
Enum.map(relevant_activities, fn activity ->
new_activity_data = activity.data |> Map.put("object", object.data)