diff options
author | unarist <m.unarist@gmail.com> | 2017-10-12 19:01:32 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-12 12:01:32 +0200 |
commit | 35ec1c91e3035b6d9f8998b693ff9829f101d752 (patch) | |
tree | 5b662c5691408e1f9a61b09188a96d7df0b28f47 /app/lib/formatter.rb | |
parent | 9d84b6e6062db19552e171c61b2647b99834d2f7 (diff) |
Fix some failure cases on FetchLinkCardService (#5347)
* If OEmbed response doesn't have a required property `type`, ignore it. e.g. `NoMethodError: undefined method 'type' for ...` * If we failed to detect encoding, fallback to default behavior of Nokogiri. e.g. `KeyError: key not found: :encoding`
Diffstat (limited to 'app/lib/formatter.rb')
0 files changed, 0 insertions, 0 deletions