about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2018-12-31 03:00:29 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-12-30 19:00:29 +0100
commit511231ce5744d4eb56f24a996e8771a22295734a (patch)
tree1d767fabc56b9daf8febd2592e8bc04759464f1b /app
parent6fb6a539389d82caf1a55ea517919977d8ee6e88 (diff)
Skip full text search if failed (#9654)
* Skip full text search if failed

* Move rescue block to "perform_statuses_search!"
Diffstat (limited to 'app')
-rw-r--r--app/services/search_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/search_service.rb b/app/services/search_service.rb
index cc1fcb52f..1c31e0509 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!