From: Evan Prodromou Date: Mon, 3 Jan 2011 15:40:57 +0000 (-0800) Subject: Add the Atom username to the XRD output X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f51db8eb0d0eda837e0b309729266201fffc6b44;p=quix0rs-gnu-social.git Add the Atom username to the XRD output --- diff --git a/lib/xrdaction.php b/lib/xrdaction.php index 855ed1ea89..b59e0f78a4 100644 --- a/lib/xrdaction.php +++ b/lib/xrdaction.php @@ -99,7 +99,9 @@ class XrdAction extends Action $xrd->links[] = array('rel' => 'http://apinamespace.org/atom', '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')) { $apiRoot = common_path('api/', true);