aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-01-21 07:07:54 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-01-21 08:00:40 +0100
commit2fdbd4d137387d4d469d314b641070a9fdc0468c (patch)
tree0be506dbc1e87dbaa8f97c1e7df1a5836dc6f1ef /lib/pleroma/web
parentf8ab1b7427e91ec1b7883e021836099226b56566 (diff)
downloadpleroma-2fdbd4d137387d4d469d314b641070a9fdc0468c.tar.gz
Activity: create_activity_by_object_id_query/1 → create_by_object_ap_id/1 when is_list
Diffstat (limited to 'lib/pleroma/web')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 7f5a52ea3..5e9c5c533 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -25,7 +25,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
nil
end)
|> Enum.filter(& &1)
- |> Activity.create_activity_by_object_id_query()
+ |> Activity.create_by_object_ap_id()
|> Repo.all()
|> Enum.reduce(%{}, fn activity, acc ->
Map.put(acc, activity.data["object"]["id"], activity)