From f51db8eb0d0eda837e0b309729266201fffc6b44 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 3 Jan 2011 07:40:57 -0800 Subject: [PATCH] Add the Atom username to the XRD output --- lib/xrdaction.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5