From: sadposter Date: Tue, 14 Dec 2021 14:16:21 +0000 (+0000) Subject: filter by user type X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=94c22baaa361428984e658f4596aebbebc6b512a;p=akkoma filter by user type --- 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 @@ defmodule Pleroma.Elasticsearch 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)}},