Skip to content

Commit

Permalink
Skip full text search if failed (#9654)
Browse files Browse the repository at this point in the history
* Skip full text search if failed

* Move rescue block to "perform_statuses_search!"
  • Loading branch information
tribela authored and Gargron committed Dec 30, 2018
1 parent 6fb6a53 commit 511231c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/search_service.rb
Expand Up @@ -34,6 +34,8 @@ def perform_statuses_search!
.compact

statuses.reject { |status| StatusFilter.new(status, account).filtered? }
rescue Faraday::ConnectionFailed
[]
end

def perform_hashtags_search!
Expand Down

0 comments on commit 511231c

Please sign in to comment.