don't try indexing non-people

This commit is contained in:
sadposter 2021-12-15 11:05:30 +00:00 committed by FloatingGhost
parent 4e923b331f
commit e1799f9456

View 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