mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 16:44:04 -05:00
Fix LinkCrawlWorker
error when encountering empty OEmbed response (#28268)
This commit is contained in:
parent
2c6369918c
commit
a8a5c6514f
@ -100,7 +100,7 @@ class FetchOEmbedService
|
|||||||
end
|
end
|
||||||
|
|
||||||
def validate(oembed)
|
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
|
end
|
||||||
|
|
||||||
def html
|
def html
|
||||||
|
Loading…
Reference in New Issue
Block a user