0
0
Fork 0

Change some instances of Nokogiri HTML4 parsing to HTML5 (#31812)

This commit is contained in:
Mike Dalessio 2024-09-08 14:41:37 -04:00 committed by GitHub
parent b716248fc5
commit 10143d053a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 11 additions and 11 deletions

View file

@ -73,7 +73,7 @@ class FetchResourceService < BaseService
end
def process_html(response)
page = Nokogiri::HTML(response.body_with_limit)
page = Nokogiri::HTML5(response.body_with_limit)
json_link = page.xpath('//link[@rel="alternate"]').find { |link| ACTIVITY_STREAM_LINK_TYPES.include?(link['type']) }
process(json_link['href'], terminal: true) unless json_link.nil?