MS IZ small webfinger bug fixes

This commit is contained in:
maxwell 2010-07-15 16:54:46 -07:00
parent 720550189d
commit cc712196a6
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ class PublicsController < ApplicationController
end end
def webfinger def webfinger
@user = Person.first(:email => params[:q]) @user = Person.first(:email => params[:q][4...].gsub('acct:', '')]
render 'webfinger', :layout => false, :content_type => 'application/xrd+xml' render 'webfinger', :layout => false, :content_type => 'application/xrd+xml'
end end

View file

@ -3,7 +3,7 @@
xmlns:hm='http://host-meta.net/xrd/1.0'> xmlns:hm='http://host-meta.net/xrd/1.0'>
<hm:Host xmlns='http://host-meta.net/xrd/1.0'><%=@user.url%></hm:Host> <hm:Host xmlns='http://host-meta.net/xrd/1.0'><%=@user.url%></hm:Host>
<Link rel='lrdd' <Link rel='lrdd'
template='<%=@user.url%>webfinger/?q={uri}'> template='<%=@user.url%>webfinger/tom'>
<Title>Resource Descriptor</Title> <Title>Resource Descriptor</Title>
</Link> </Link>
</XRD> </XRD>