mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 02:21:37 +01:00
Rescue Mastodon::LengthValidationError in FetchLinkCardService (#7424)
This commit is contained in:
parent
40097f438b
commit
d2ee48977c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class FetchLinkCardService < BaseService
|
||||||
end
|
end
|
||||||
|
|
||||||
attach_card if @card&.persisted?
|
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}"
|
Rails.logger.debug "Error fetching link #{@url}: #{e}"
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue