From 763466ab86661c64e6fd58cf48de79ebeb1760c8 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 24 Jul 2020 18:00:29 -0500 Subject: [PATCH] Updated SearchService to return groups for everyone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - SearchService to return groups for everyone even if not logged in --- app/services/search_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/search_service.rb b/app/services/search_service.rb index 78be96f8..5e53c7fc 100644 --- a/app/services/search_service.rb +++ b/app/services/search_service.rb @@ -18,7 +18,7 @@ class SearchService < BaseService results[:accounts] = perform_accounts_search! if account_searchable? results[:statuses] = perform_statuses_search! if full_text_searchable? && !account.nil? results[:hashtags] = perform_hashtags_search! if hashtag_searchable? && !account.nil? - results[:groups] = perform_groups_search! if !account.nil? + results[:groups] = perform_groups_search! end end end