diff options
author | Renato "Lond" Cerqueira <renato@lond.com.br> | 2019-01-24 15:38:18 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-01-24 15:38:18 +0100 |
commit | e1ec3a9f09add8a34b1a77ce217be8e51ebd4936 (patch) | |
tree | 7c7abf81a8cd68b81c64a59d7bb460c92783fc23 /app | |
parent | c87863bdd18213a7181914b76752959b0617ade1 (diff) |
Rescue SSL error in verify link service (#9914)
If the first link to be verified contains a rel=me link with a SSL error, the VerifyAccountLinksWorker will fail and not try the following links. This rescues the SSL error when fetching the link, avoiding this issue.
Diffstat (limited to 'app')
-rw-r--r-- | app/services/verify_link_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/verify_link_service.rb b/app/services/verify_link_service.rb index c65578761..878a2188d 100644 --- a/app/services/verify_link_service.rb +++ b/app/services/verify_link_service.rb @@ -10,7 +10,7 @@ class VerifyLinkService < BaseService return unless link_back_present? field.mark_verified! - rescue HTTP::Error, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError => e + rescue OpenSSL::SSL::SSLError, HTTP::Error, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError => e Rails.logger.debug "Error fetching link #{@url}: #{e}" nil end |