]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use some constants and do some extra output in webfinger output
authorEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 02:38:59 +0000 (21:38 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 02:38:59 +0000 (21:38 -0500)
plugins/OStatus/actions/webfinger.php

index f4dc61b7d1d34b6cdb8ab45e2a85672589389025..cf60b8069d455f524eccd56a2dcdca358525bf66 100644 (file)
@@ -37,7 +37,7 @@ class WebfingerAction extends Action
 
         return true;
     }
-        
+
     function handle()
     {
         $acct = Webfinger::normalize($this->uri);
@@ -55,16 +55,22 @@ class WebfingerAction extends Action
 
         $xrd->subject = $this->uri;
         $xrd->alias[] = common_profile_url($nick);
-        $xrd->links[] = array('rel' => 'http://webfinger.net/rel/profile-page',
+        $xrd->links[] = array('rel' => Webfinger::PROFILEPAGE,
                               'type' => 'text/html',
                               'href' => common_profile_url($nick));
 
+        $xrd->links[] = array('rel' => Webfinger::UPDATESFROM,
+                              'href' => common_local_url('ApiTimelineUser',
+                                                         array('id' => $this->user->id,
+                                                               'format' => 'atom')),
+                              'type' => 'application/atom+xml');
+
         $salmon_url = common_local_url('salmon',
                                        array('id' => $this->user->id));
 
         $xrd->links[] = array('rel' => 'salmon',
                               'href' => $salmon_url);
-        
+
         // TODO - finalize where the redirect should go on the publisher
         $url = common_local_url('ostatussub') . '?profile={uri}';
         $xrd->links[] = array('rel' => 'http://ostatus.org/schema/1.0/subscribe',