From e1799f9456f08b4ae7e328a82d7b1b380902a552 Mon Sep 17 00:00:00 2001 From: sadposter Date: Wed, 15 Dec 2021 11:05:30 +0000 Subject: [PATCH] don't try indexing non-people --- lib/pleroma/elasticsearch/store.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/elasticsearch/store.ex b/lib/pleroma/elasticsearch/store.ex index caa49cbea..291fdf075 100644 --- a/lib/pleroma/elasticsearch/store.ex +++ b/lib/pleroma/elasticsearch/store.ex @@ -35,7 +35,7 @@ def maybe_put_into_elasticsearch( 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