MS tantek?
This commit is contained in:
parent
8c50ea0c97
commit
7ba85e0d4e
1 changed files with 4 additions and 1 deletions
|
|
@ -34,6 +34,10 @@ module RequestsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def relationship_flow(identifier)
|
def relationship_flow(identifier)
|
||||||
|
if identifier.include?('.atom')
|
||||||
|
return {:subscribe => identifier}
|
||||||
|
end
|
||||||
|
|
||||||
unless identifier.include?( '@' )
|
unless identifier.include?( '@' )
|
||||||
return {:friend => identifier}
|
return {:friend => identifier}
|
||||||
end
|
end
|
||||||
|
|
@ -42,7 +46,6 @@ 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