]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use new dedicated hcard method for Webfinger profile
authorEvan Prodromou <evan@status.net>
Thu, 25 Feb 2010 23:45:08 +0000 (18:45 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 25 Feb 2010 23:45:08 +0000 (18:45 -0500)
plugins/OStatus/actions/webfinger.php

index 34336a9039bf7869b428e39f742396e2aa1c147c..d3671962b535e6ea4ca03133e036be8c5876475f 100644 (file)
@@ -68,7 +68,7 @@ class WebfingerAction extends Action
         // hCard
         $xrd->links[] = array('rel' => 'http://microformats.org/profile/hcard',
                               'type' => 'text/html',
-                              'href' => common_profile_url($nick));
+                              'href' => common_local_url('hcard', array('nickname' => $nick)));
 
         // XFN
         $xrd->links[] = array('rel' => 'http://gmpg.org/xfn/11',
@@ -78,8 +78,8 @@ class WebfingerAction extends Action
         $xrd->links[] = array('rel' => 'describedby',
                               'type' => 'application/rdf+xml',
                               'href' => common_local_url('foaf',
-                                                         array('nickname' => $nick)));                        
-        
+                                                         array('nickname' => $nick)));
+
         $salmon_url = common_local_url('salmon',
                                        array('id' => $this->user->id));
 
@@ -93,10 +93,10 @@ class WebfingerAction extends Action
             $magickey = new Magicsig();
             $magickey->generate();
         }
-        
+
         $xrd->links[] = array('rel' => Magicsig::PUBLICKEYREL,
                               'href' => 'data:application/magic-public-key;'. $magickey->keypair);
-        
+
         // 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',