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

This commit is contained in:
Claire authored and GitHub committed 2023-12-12 08:29:46 +00:00
1 parent 2c6369918c
commit a8a5c6514f
1 file changed
+1 -1
+1 -1
View File
@@ -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