Fix `LinkCrawlWorker` error when encountering empty OEmbed response (#28268)

th-downstream
Claire 11 months ago committed by GitHub
parent 2c6369918c
commit a8a5c6514f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -100,7 +100,7 @@ class FetchOEmbedService
end
def validate(oembed)
oembed if oembed[:version].to_s == '1.0' && oembed[:type].present?
oembed if oembed.present? && oembed[:version].to_s == '1.0' && oembed[:type].present?
end
def html

Loading…
Cancel
Save