Pleroma.Search: Remove wrong (but irrelevant) results

This commit is contained in:
Lain Soykaf 2024-05-27 13:18:02 +04:00
parent d9b82255b9
commit d35b69d268
1 changed files with 2 additions and 3 deletions

View File

@ -10,13 +10,12 @@ def remove_from_index(%Pleroma.Object{id: object_id}) do
end end
def search(query, options) do def search(query, options) do
search_module = Pleroma.Config.get([Pleroma.Search, :module], Pleroma.Activity) search_module = Pleroma.Config.get([Pleroma.Search, :module])
search_module.search(options[:for_user], query, options) search_module.search(options[:for_user], query, options)
end end
def healthcheck_endpoints do def healthcheck_endpoints do
search_module = Pleroma.Config.get([Pleroma.Search, :module], Pleroma.Activity) search_module = Pleroma.Config.get([Pleroma.Search, :module])
search_module.healthcheck_endpoints search_module.healthcheck_endpoints
end end
end end