use new hcard method for webfinger

This commit is contained in:
Evan Prodromou 2010-02-25 19:58:18 -05:00
parent 36f02f459b
commit cc0670791e
2 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class WebfingerAction extends Action
'type' => 'application/atom+xml');
// hCard
$xrd->links[] = array('rel' => 'http://microformats.org/profile/hcard',
$xrd->links[] = array('rel' => Webfinger::HCARD,
'type' => 'text/html',
'href' => common_local_url('hcard', array('nickname' => $nick)));

View File

@ -37,6 +37,7 @@ class Webfinger
{
const PROFILEPAGE = 'http://webfinger.net/rel/profile-page';
const UPDATESFROM = 'http://schemas.google.com/g/2010#updates-from';
const HCARD = 'http://microformats.org/profile/hcard';
/**
* Perform a webfinger lookup given an account.