mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-22 14:45:16 +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
|
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)}},
|
||||||
|
|
Loading…
Reference in a new issue