Updated SearchService to return groups for everyone

• Updated:
- SearchService to return groups for everyone even if not logged in
This commit is contained in:
mgabdev 2020-07-24 18:00:29 -05:00
parent 43207e8b29
commit 763466ab86

View File

@ -18,7 +18,7 @@ class SearchService < BaseService
results[:accounts] = perform_accounts_search! if account_searchable? results[:accounts] = perform_accounts_search! if account_searchable?
results[:statuses] = perform_statuses_search! if full_text_searchable? && !account.nil? results[:statuses] = perform_statuses_search! if full_text_searchable? && !account.nil?
results[:hashtags] = perform_hashtags_search! if hashtag_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 end
end end