Changed some thngs to be compatible with webfinger.org, still *very preliminary*
This commit is contained in:
parent
9c1c6c2a61
commit
830a78cdfb
@ -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/" />
|
||||
|
@ -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)})
|
||||
|
Loading…
x
Reference in New Issue
Block a user