Changed some thngs to be compatible with webfinger.org, still *very preliminary*

This commit is contained in:
Joar Wandborg 2011-12-15 00:58:14 +01:00
parent 9c1c6c2a61
commit 830a78cdfb
2 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,9 @@
<Subject>{{ uri }}</Subject>
<Alias>http://{{ request.host }}/u/{{ username }}</Alias>
<Link rel='http://microformats.org/profile/hcard'
href='http://{{ request.host }}/u/{{ username }}' />
<Link rel="http://schemas.google.com/g/2010#updates-from"
type="application/atom+xml"
href="http://{{ request.host }}/u/{{ username }}/atom/" />

View File

@ -42,5 +42,5 @@ def xrd(request):
'mediagoblin/webfinger/xrd.xml',
{'request': request,
'username': re.search(
r'^acct:([^@]*)',
request.GET.get('uri')).group(1)})
r'^(acct:)?([^@]*)',
request.GET.get('uri')).group(2)})