MS i really wanna subscribe to tantek
This commit is contained in:
parent
0fdce91756
commit
8c50ea0c97
1 changed files with 5 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ module RequestsHelper
|
||||||
elsif ostatus?(profile)
|
elsif ostatus?(profile)
|
||||||
:subscribe
|
:subscribe
|
||||||
else
|
else
|
||||||
:none
|
:subscribe
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -29,7 +29,7 @@ module RequestsHelper
|
||||||
elsif action == :friend
|
elsif action == :friend
|
||||||
profile.links.select{|x| x.rel == 'http://joindiaspora.com/seed_location'}.first.href
|
profile.links.select{|x| x.rel == 'http://joindiaspora.com/seed_location'}.first.href
|
||||||
else
|
else
|
||||||
''
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -42,6 +42,7 @@ module RequestsHelper
|
||||||
action = subscription_mode(f)
|
action = subscription_mode(f)
|
||||||
url = subscription_url(action, f)
|
url = subscription_url(action, f)
|
||||||
|
|
||||||
|
url ||=identifier
|
||||||
{ action => url }
|
{ action => url }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue