1
0
Fork 1
forked from fedi/mastodon

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

This commit is contained in:
Claire 2023-12-12 09:29:46 +01:00
parent d7875adad2
commit 279be07679

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