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

master
Eugen Rochko 7 years ago committed by GitHub
parent 1957209efd
commit ff87d1bc3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/services/process_mentions_service.rb

@ -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)

Loading…
Cancel
Save