]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use canonical user url in xrd
authorJames Walker <walkah@walkah.net>
Mon, 15 Mar 2010 19:17:31 +0000 (15:17 -0400)
committerJames Walker <walkah@walkah.net>
Mon, 15 Mar 2010 19:17:31 +0000 (15:17 -0400)
plugins/OStatus/lib/xrdaction.php

index b3c1d84530e2ce100cc92b38b3a82a25b4cfca7b..f1a56e0a84d3b3967b2595d32f2f3f82afd12ed2 100644 (file)
@@ -46,10 +46,10 @@ class XrdAction extends Action
         if (empty($xrd->subject)) {
             $xrd->subject = Discovery::normalize($this->uri);
         }
-        $xrd->alias[] = common_profile_url($nick);
+        $xrd->alias[] = $this->user->uri;
         $xrd->links[] = array('rel' => Discovery::PROFILEPAGE,
                               'type' => 'text/html',
-                              'href' => common_profile_url($nick));
+                              'href' => $this->user->uri);
 
         $xrd->links[] = array('rel' => Discovery::UPDATESFROM,
                               'href' => common_local_url('ApiTimelineUser',
@@ -65,7 +65,7 @@ class XrdAction extends Action
         // XFN
         $xrd->links[] = array('rel' => 'http://gmpg.org/xfn/11',
                               'type' => 'text/html',
-                              'href' => common_profile_url($nick));
+                              'href' => $this->user->uri);
         // FOAF
         $xrd->links[] = array('rel' => 'describedby',
                               'type' => 'application/rdf+xml',