projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'upstream/develop' into develop
[akkoma]
/
lib
/
pleroma
/
elasticsearch
/
store.ex
diff --git
a/lib/pleroma/elasticsearch/store.ex
b/lib/pleroma/elasticsearch/store.ex
index 5c9e1502210b28915d835f2878df794072e055cb..699127c73cca91477b02b9ce62da00c085afe15a 100644
(file)
--- a/
lib/pleroma/elasticsearch/store.ex
+++ b/
lib/pleroma/elasticsearch/store.ex
@@
-111,6
+111,7
@@
defmodule Pleroma.Elasticsearch do
def bulk_post(data, :users) do
d =
data
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)}},
|> Enum.map(fn d ->
[
%{index: %{_id: DocumentMappings.User.id(d)}},