summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJames Walker <walkah@walkah.net>2010-02-23 18:25:31 -0500
committerJames Walker <walkah@walkah.net>2010-02-23 18:25:31 -0500
commit391b45949f6fabef0427aa99d4123fe6ef5ef49d (patch)
tree02d857300bdfdb6fc5026834ead5b3372822b1ac /plugins
parentfa178a8aa7d6e5ade76eef12ac0ca49aa10f5cdc (diff)
adding xfn, foaf and hcard rel's to our webfinger output
Diffstat (limited to 'plugins')
-rw-r--r--plugins/OStatus/actions/webfinger.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/OStatus/actions/webfinger.php b/plugins/OStatus/actions/webfinger.php
index fbbd8d039..34336a903 100644
--- a/plugins/OStatus/actions/webfinger.php
+++ b/plugins/OStatus/actions/webfinger.php
@@ -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));