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

View File

@ -10,13 +10,12 @@ defmodule Pleroma.Search 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