mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 04:53:06 +00:00
don't try indexing non-people
This commit is contained in:
parent
ccc5c59c50
commit
93e41df75d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue