Mini refactor, removed terse_url function
This commit is contained in:
parent
e86a5563ed
commit
b0ff8f0f60
2 changed files with 1 additions and 7 deletions
|
|
@ -18,10 +18,4 @@ module PublicsHelper
|
|||
end
|
||||
end
|
||||
|
||||
def terse_url(full_url)
|
||||
terse = full_url.gsub(/https?:\/\//, '')
|
||||
terse.gsub!(/www\./, '')
|
||||
terse = terse.chop! if terse[-1, 1] == '/'
|
||||
terse
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'
|
||||
xmlns:hm='http://host-meta.net/xrd/1.0'>
|
||||
<hm:Host><%= terse_url(root_url) %></hm:Host>
|
||||
<hm:Host><%= APP_CONFIG[:terse_pod_url] %></hm:Host>
|
||||
<Link rel='lrdd'
|
||||
template='<%= APP_CONFIG[:pod_url] %>webfinger?q={uri}'>
|
||||
<Title>Resource Descriptor</Title>
|
||||
|
|
|
|||
Loading…
Reference in a new issue