From 94c22baaa361428984e658f4596aebbebc6b512a Mon Sep 17 00:00:00 2001 From: sadposter Date: Tue, 14 Dec 2021 14:16:21 +0000 Subject: [PATCH] filter by user type --- lib/pleroma/elasticsearch/store.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pleroma/elasticsearch/store.ex b/lib/pleroma/elasticsearch/store.ex index 2d8aeabc2..1d63e8816 100644 --- a/lib/pleroma/elasticsearch/store.ex +++ b/lib/pleroma/elasticsearch/store.ex @@ -98,6 +98,7 @@ def bulk_post(data, :activities) do def bulk_post(data, :users) do d = data + |> Enum.filter(fn x -> x.actor_type == "Person" end) |> Enum.map(fn d -> [ %{index: %{_id: DocumentMappings.User.id(d)}},