From: sadposter Date: Wed, 15 Dec 2021 11:05:30 +0000 (+0000) Subject: don't try indexing non-people X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=93e41df75d99d246be0a3427dd4228ac6a9b4656;p=akkoma don't try indexing non-people --- diff --git a/lib/pleroma/elasticsearch/store.ex b/lib/pleroma/elasticsearch/store.ex index ffa6d4769..4789aebe0 100644 --- a/lib/pleroma/elasticsearch/store.ex +++ b/lib/pleroma/elasticsearch/store.ex @@ -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