Skip to content

Commit

Permalink
Skip full text search if failed (mastodon#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 hiyuki2578 committed Oct 2, 2019
1 parent 16c8d05 commit 0b58197
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/search_service.rb
Original file line number Diff line number Diff line change
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 0b58197

Please sign in to comment.