fix webfinger for (old?) nokogiri syntax

This commit is contained in:
Maxwell Salzberg 2012-04-11 18:19:14 -07:00
parent d6f317af3d
commit 8e22d69d8e

View file

@ -83,9 +83,9 @@ class Webfinger
end
def webfinger_profile_url
doc = Nokogiri::XML::Document.parse(self.host_meta_xrd)
doc = Nokogiri::XML(self.host_meta_xrd)
return nil if doc.namespaces["xmlns"] != "http://docs.oasis-open.org/ns/xri/xrd-1.0"
swizzle doc.at('Link[rel=lrdd]').attribute('template').value
swizzle doc.search('Link').find{|x| x['rel']=='lrdd'}['template']
end
def webfinger_profile_xrd