Skip to content

Commit 511231c

Browse files
tribelaGargron
authored andcommitted
Skip full text search if failed (#9654)
* Skip full text search if failed * Move rescue block to "perform_statuses_search!"
1 parent 6fb6a53 commit 511231c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/services/search_service.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def perform_statuses_search!
3434
.compact
3535

3636
statuses.reject { |status| StatusFilter.new(status, account).filtered? }
37+
rescue Faraday::ConnectionFailed
38+
[]
3739
end
3840

3941
def perform_hashtags_search!

0 commit comments

Comments
 (0)