]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use new hcard method for webfinger
authorEvan Prodromou <evan@status.net>
Fri, 26 Feb 2010 00:58:18 +0000 (19:58 -0500)
committerEvan Prodromou <evan@status.net>
Fri, 26 Feb 2010 00:58:18 +0000 (19:58 -0500)
plugins/OStatus/actions/webfinger.php
plugins/OStatus/lib/webfinger.php

index d3671962b535e6ea4ca03133e036be8c5876475f..e292ccec96a2502db9d6a48dea50ecf1ab64d93a 100644 (file)
@@ -66,7 +66,7 @@ class WebfingerAction extends Action
                               'type' => 'application/atom+xml');
 
         // hCard
-        $xrd->links[] = array('rel' => 'http://microformats.org/profile/hcard',
+        $xrd->links[] = array('rel' => Webfinger::HCARD,
                               'type' => 'text/html',
                               'href' => common_local_url('hcard', array('nickname' => $nick)));
 
index 8a5037629467263f116528ce48494cf9aab9a000..8d70403102b639040c72a9c3fb638d8ce7aa42cd 100644 (file)
@@ -37,6 +37,7 @@ class Webfinger
 {
     const PROFILEPAGE = 'http://webfinger.net/rel/profile-page';
     const UPDATESFROM = 'http://schemas.google.com/g/2010#updates-from';
+    const HCARD       = 'http://microformats.org/profile/hcard';
 
     /**
      * Perform a webfinger lookup given an account.