forked from AkkomaGang/akkoma
filter by user type
This commit is contained in:
parent
8f78cb3050
commit
94c22baaa3
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ def bulk_post(data, :activities) 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