From 54aa2c7ce36a7444a11f4d17376403ceec542fcb Mon Sep 17 00:00:00 2001 From: MrZYX Date: Sat, 9 Apr 2011 20:21:27 +0200 Subject: [PATCH] whoops, let's not break inital fetching --- lib/webfinger.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/webfinger.rb b/lib/webfinger.rb index 1e4dc4dd2..bf752bc93 100644 --- a/lib/webfinger.rb +++ b/lib/webfinger.rb @@ -80,10 +80,10 @@ class Webfinger def get_hcard(webfinger_profile) unless webfinger_profile.strip == "" - wf_profile = WebfingerProfile.new(@account, webfinger_profile) + @wf_profile = WebfingerProfile.new(@account, webfinger_profile) begin - hcard = RestClient.get(wf_profile.hcard, OPTS) + hcard = RestClient.get(@wf_profile.hcard, OPTS) rescue return I18n.t('webfinger.hcard_fetch_failed', :account => @account) end @@ -96,8 +96,8 @@ class Webfinger def make_person_from_webfinger(webfinger_profile) card = get_hcard(webfinger_profile) - if card - p = Person.create_from_webfinger(wf_profile, card) + if card && @wf_profile + p = Person.create_from_webfinger(@wf_profile, card) end end