mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
Replace Hpricot with Nokogiri
This commit is contained in:
@ -9,7 +9,7 @@ module Oneboxer
|
||||
|
||||
page_html = open(@url).read
|
||||
return nil if page_html.blank?
|
||||
doc = Hpricot(page_html)
|
||||
doc = Nokogiri::HTML(page_html)
|
||||
|
||||
# Flikrs oembed just stopped returning images for no reason. Let's use opengraph instead.
|
||||
open_graph = Oneboxer.parse_open_graph(doc)
|
||||
|
Reference in New Issue
Block a user