filter by user type

This commit is contained in:
sadposter 2021-12-14 14:16:21 +00:00
parent 8f78cb3050
commit 94c22baaa3

View file

@ -98,6 +98,7 @@ defmodule Pleroma.Elasticsearch do
def bulk_post(data, :users) do def bulk_post(data, :users) do
d = d =
data data
|> Enum.filter(fn x -> x.actor_type == "Person" end)
|> Enum.map(fn d -> |> Enum.map(fn d ->
[ [
%{index: %{_id: DocumentMappings.User.id(d)}}, %{index: %{_id: DocumentMappings.User.id(d)}},