From 511231ce5744d4eb56f24a996e8771a22295734a Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Mon, 31 Dec 2018 03:00:29 +0900 Subject: [PATCH] Skip full text search if failed (#9654) * Skip full text search if failed * Move rescue block to "perform_statuses_search!" --- app/services/search_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/search_service.rb b/app/services/search_service.rb index cc1fcb52f0a..1c31e0509a8 100644 --- a/app/services/search_service.rb +++ b/app/services/search_service.rb @@ -34,6 +34,8 @@ class SearchService < BaseService .compact statuses.reject { |status| StatusFilter.new(status, account).filtered? } + rescue Faraday::ConnectionFailed + [] end def perform_hashtags_search!