mirror of https://github.com/mastodon/mastodon
Guard against error extracting `body` from URL (#20428)
If `Nokogiri::HTML(value).at_xpath('//body')` fails to find the `body` element, it will return `nil`. We can guard against that with an early return. Avoids calling `children` on `Nilclass` in those cases.pull/20456/head
parent
31005aad12
commit
96f51e593f
Loading…
Reference in New Issue