]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add the Atom username to the XRD output
authorEvan Prodromou <evan@status.net>
Mon, 3 Jan 2011 15:40:57 +0000 (07:40 -0800)
committerEvan Prodromou <evan@status.net>
Mon, 3 Jan 2011 15:40:57 +0000 (07:40 -0800)
lib/xrdaction.php

index 855ed1ea892e4f847fdb6003a6d9f7296e502280..b59e0f78a40f3c2dab4a8eb43053f2d2b579f5c1 100644 (file)
@@ -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);