mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 02:05:12 +00:00
filter by user type
This commit is contained in:
parent
8f78cb3050
commit
94c22baaa3
|
@ -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)}},
|
||||
|
|
Loading…
Reference in a new issue