]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
adding xfn, foaf and hcard rel's to our webfinger output
authorJames Walker <walkah@walkah.net>
Tue, 23 Feb 2010 23:25:31 +0000 (18:25 -0500)
committerJames Walker <walkah@walkah.net>
Tue, 23 Feb 2010 23:25:31 +0000 (18:25 -0500)
plugins/OStatus/actions/webfinger.php

index fbbd8d0397a33b6b7f034e8ad31a30a17677452f..34336a9039bf7869b428e39f742396e2aa1c147c 100644 (file)
@@ -65,6 +65,21 @@ class WebfingerAction extends Action
                                                                'format' => 'atom')),
                               'type' => 'application/atom+xml');
 
+        // hCard
+        $xrd->links[] = array('rel' => 'http://microformats.org/profile/hcard',
+                              'type' => 'text/html',
+                              'href' => common_profile_url($nick));
+
+        // XFN
+        $xrd->links[] = array('rel' => 'http://gmpg.org/xfn/11',
+                              'type' => 'text/html',
+                              'href' => common_profile_url($nick));
+        // FOAF
+        $xrd->links[] = array('rel' => 'describedby',
+                              'type' => 'application/rdf+xml',
+                              'href' => common_local_url('foaf',
+                                                         array('nickname' => $nick)));                        
+        
         $salmon_url = common_local_url('salmon',
                                        array('id' => $this->user->id));