filter by user type
authorsadposter <hannah+pleroma@coffee-and-dreams.uk>
Tue, 14 Dec 2021 14:16:21 +0000 (14:16 +0000)
committersadposter <hannah+pleroma@coffee-and-dreams.uk>
Tue, 14 Dec 2021 14:16:21 +0000 (14:16 +0000)
lib/pleroma/elasticsearch/store.ex

index 2d8aeabc29d539708c2755494ff38889e92b1de6..1d63e88169e3908838e498bd34ba8945cde33c25 100644 (file)
@@ -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)}},