Permalink
Browse files

fix webfinger for (old?) nokogiri syntax

  • Loading branch information...
1 parent d6f317a commit 8e22d69d8e0ed2b4b68454367a81fea1d0f522a5 @maxwell maxwell committed Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/webfinger.rb
View
@@ -83,9 +83,9 @@ def hcard_url
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

0 comments on commit 8e22d69

Please sign in to comment.