From c176b4ec80a8973fa90cc845ddd97ff9aee6a515 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 cc1fcb52f0..1c31e0509a 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!