Rescue SSL errors when processing mentions, remove useless line (#7184)

lolsob-rspec
Eugen Rochko 2018-04-19 00:53:31 +02:00 committed by GitHub
parent 7bca0f1cda
commit 7cba58aeaf
1 changed files with 1 additions and 3 deletions

View File

@ -17,13 +17,11 @@ class ProcessMentionsService < BaseService
if mention_undeliverable?(status, mentioned_account)
begin
mentioned_account = resolve_account_service.call($1)
rescue Goldfinger::Error, HTTP::Error
rescue Goldfinger::Error, HTTP::Error, OpenSSL::SSL::SSLError, Mastodon::UnexpectedResponseError
mentioned_account = nil
end
end
mentioned_account ||= Account.find_remote(username, domain)
next match if mention_undeliverable?(status, mentioned_account)
mentioned_account.mentions.where(status: status).first_or_create(status: status)