commit: d35b69d2686e62cc5076bd7a33449f98f8a11a85
parent d9b82255b9cf49176f8ef1d5a87abf7d80769a47
Author: Lain Soykaf <lain@lain.com>
Date: Mon, 27 May 2024 13:18:02 +0400
Pleroma.Search: Remove wrong (but irrelevant) results
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/pleroma/search.ex b/lib/pleroma/search.ex
@@ -10,13 +10,12 @@ defmodule Pleroma.Search do
end
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)
end
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
end
end