From 8c50ea0c97c04153568f2d79ffe0d120a3fc6b9c Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 22 Jul 2010 22:14:06 -0700 Subject: [PATCH] MS i really wanna subscribe to tantek --- app/helpers/requests_helper.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/helpers/requests_helper.rb b/app/helpers/requests_helper.rb index aebc76cce..5456c66d5 100644 --- a/app/helpers/requests_helper.rb +++ b/app/helpers/requests_helper.rb @@ -6,7 +6,7 @@ module RequestsHelper elsif ostatus?(profile) :subscribe else - :none + :subscribe end end @@ -29,19 +29,20 @@ module RequestsHelper elsif action == :friend profile.links.select{|x| x.rel == 'http://joindiaspora.com/seed_location'}.first.href else - '' + nil end end def relationship_flow(identifier) - unless identifier.include?( '@') + unless identifier.include?( '@' ) return {:friend => identifier} end f = Redfinger.finger(identifier) action = subscription_mode(f) url = subscription_url(action, f) - + + url ||=identifier { action => url } end