added webfinger support

This commit is contained in:
Mike Macgirvin 2010-07-23 16:33:34 -07:00
commit 89c15cc092
5 changed files with 65 additions and 0 deletions

17
view/xrd_person.tpl Normal file
View file

@ -0,0 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
<Subject>$accturi</Subject>
<Alias>$profile_url</Alias>
<Link rel='http://portablecontacts.net/spec/1.0'
href='http://example.com/api/people/' />
<Link rel='http://webfinger.net/rel/profile-page'
type='text/html'
href='$profile_url' />
<Link rel='http://microformats.org/profile/hcard'
type='text/html'
href='$profile_url' />
<Link rel='http://webfinger.net/rel/avatar'
href='$photo' />
</XRD>