Turns out we need that absolute option after all.
This commit is contained in:
parent
1e50137815
commit
2e747e814f
1 changed files with 5 additions and 3 deletions
|
|
@ -52,8 +52,11 @@ module PeopleHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def person_href(person, opts={})
|
def person_href(person, opts={})
|
||||||
link = "href='/"
|
if opts[:absolute]
|
||||||
link += AppConfig.pod_url if opts[:absolute]
|
link = "href='#{AppConfig.pod_url}"
|
||||||
|
else
|
||||||
|
link = "href='/"
|
||||||
|
end
|
||||||
if person.local?
|
if person.local?
|
||||||
username = person.diaspora_handle.split('@')[0]
|
username = person.diaspora_handle.split('@')[0]
|
||||||
unless username.include?('.')
|
unless username.include?('.')
|
||||||
|
|
@ -62,5 +65,4 @@ module PeopleHelper
|
||||||
end
|
end
|
||||||
return link+"people/#{person.id}'"
|
return link+"people/#{person.id}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue