$xrd->host = $domain;
if(Event::handle('StartHostMetaLinks', array(&$xrd->links))) {
+ $url = common_local_url('userxrd');
+ $url.= '?uri={uri}';
+ $xrd->links[] = array('rel' => Discovery::LRDD_REL,
+ 'template' => $url,
+ 'title' => array('Resource Descriptor'));
Event::handle('EndHostMetaLinks', array(&$xrd->links));
}
array('action' => 'publicxrds'));
$m->connect('.well-known/host-meta',
array('action' => 'hostmeta'));
+ $m->connect('main/xrd',
+ array('action' => 'userxrd'));
// these take a code
function onRouterInitialized($m)
{
// Discovery actions
- $m->connect('main/xrd',
- array('action' => 'userxrd'));
$m->connect('main/ownerxrd',
array('action' => 'ownerxrd'));
$m->connect('main/ostatus',
return true;
}
- function onStartHostMetaLinks(&$links) {
- $url = common_local_url('userxrd');
- $url.= '?uri={uri}';
- $links[] = array('rel' => Discovery::LRDD_REL,
- 'template' => $url,
- 'title' => array('Resource Descriptor'));
- }
-
function onEndXrdActionLinks(&$xrd, $user)
{
// Salmon