diff options
author | James Walker <walkah@walkah.net> | 2010-02-26 03:25:51 -0500 |
---|---|---|
committer | James Walker <walkah@walkah.net> | 2010-02-26 03:25:51 -0500 |
commit | 84d0c865c4c2dd597e249c76fa1429175f5461a1 (patch) | |
tree | 449522a414bef8071bdfa4ea207be250b268370f /plugins/OStatus/OStatusPlugin.php | |
parent | 7c8031dc4bf6ece83db893e13d89ced10c2f6b62 (diff) |
salmon actually fetching remote keypairs
Diffstat (limited to 'plugins/OStatus/OStatusPlugin.php')
-rw-r--r-- | plugins/OStatus/OStatusPlugin.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 91d055498..46f986682 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -103,6 +103,20 @@ class OStatusPlugin extends Plugin } /** + * Add a link header for LRDD Discovery + */ + function onStartShowHTML($action) + { + if ($action instanceof ShowstreamAction) { + $acct = 'acct:'. $action->profile->nickname .'@'. common_config('site', 'server'); + $url = common_local_url('xrd'); + $url.= '?uri='. $acct; + + header('Link: <'.$url.'>; rel="'. Discovery::LRDD_REL.'"; type="application/xrd+xml"'); + } + } + + /** * Set up a PuSH hub link to our internal link for canonical timeline * Atom feeds for users and groups. */ |