diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2018-05-09 15:39:08 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-05-09 08:39:08 +0200 |
commit | d2ee48977c8b663465504b44ae3d648cadd29aab (patch) | |
tree | 1cf3fe5bb38e463ecdd348f61f6bd26ab7b56914 /app | |
parent | 40097f438b2b23a7a496b4b7dc96e188c196f261 (diff) |
Rescue Mastodon::LengthValidationError in FetchLinkCardService (#7424)
Diffstat (limited to 'app')
-rw-r--r-- | app/services/fetch_link_card_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb index 77d4aa538..f9b1b2f0c 100644 --- a/app/services/fetch_link_card_service.rb +++ b/app/services/fetch_link_card_service.rb @@ -27,7 +27,7 @@ class FetchLinkCardService < BaseService end attach_card if @card&.persisted? - rescue HTTP::Error, Addressable::URI::InvalidURIError => e + rescue HTTP::Error, Addressable::URI::InvalidURIError, Mastodon::LengthValidationError => e Rails.logger.debug "Error fetching link #{@url}: #{e}" nil end |