mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +00:00
don't try indexing non-people
This commit is contained in:
parent
d5c8415496
commit
25920c10df
|
@ -35,7 +35,7 @@ defmodule Pleroma.Elasticsearch do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def maybe_put_into_elasticsearch(%User{} = user) do
|
def maybe_put_into_elasticsearch(%User{actor_type: "Person"} = user) do
|
||||||
if enabled?() do
|
if enabled?() do
|
||||||
put(user)
|
put(user)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue