Add the Atom username to the XRD output

This commit is contained in:
Evan Prodromou 2011-01-03 07:40:57 -08:00
parent aa9137ca71
commit 8653d8a252

View File

@ -99,7 +99,9 @@ class XrdAction extends Action
$xrd->links[] = array('rel' => 'http://apinamespace.org/atom', $xrd->links[] = array('rel' => 'http://apinamespace.org/atom',
'type' => 'application/atomsvc+xml', 'type' => 'application/atomsvc+xml',
'href' => common_local_url('ApiAtomService', array('id' => $nick))); 'href' => common_local_url('ApiAtomService', array('id' => $nick)),
'property' => array(array('type' => 'http://apinamespace.org/atom/username',
'value' => $nick)));
if (common_config('site', 'fancy')) { if (common_config('site', 'fancy')) {
$apiRoot = common_path('api/', true); $apiRoot = common_path('api/', true);