don't try indexing non-people
authorsadposter <hannah+pleroma@coffee-and-dreams.uk>
Wed, 15 Dec 2021 11:05:30 +0000 (11:05 +0000)
committersadposter <hannah+pleroma@coffee-and-dreams.uk>
Wed, 15 Dec 2021 11:05:30 +0000 (11:05 +0000)
lib/pleroma/elasticsearch/store.ex

index ffa6d47691ca504d8bb25c9a2a1d9c0bd21297d8..4789aebe016b78f88f7dcffd328c305af53fc69c 100644 (file)
@@ -35,7 +35,7 @@ defmodule Pleroma.Elasticsearch do
     end
   end
 
-  def maybe_put_into_elasticsearch(%User{} = user) do
+  def maybe_put_into_elasticsearch(%User{actor_type: "Person"} = user) do
     if enabled?() do
       put(user)
     end