forked from GNUsocial/gnu-social
Update XML generation and list of actions in public XRDS
Updated the XML generation calls and list of actions in the public XRDS document.
This commit is contained in:
parent
925ac16e1f
commit
f934cf2ac0
@ -70,19 +70,19 @@ class PublicxrdsAction extends Action
|
|||||||
{
|
{
|
||||||
parent::handle($args);
|
parent::handle($args);
|
||||||
header('Content-Type: application/xrds+xml');
|
header('Content-Type: application/xrds+xml');
|
||||||
common_start_xml();
|
$this->startXML();
|
||||||
$this->elementStart('XRDS', array('xmlns' => 'xri://$xrds'));
|
$this->elementStart('XRDS', array('xmlns' => 'xri://$xrds'));
|
||||||
$this->elementStart('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)',
|
$this->elementStart('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)',
|
||||||
'xmlns:simple' => 'http://xrds-simple.net/core/1.0',
|
'xmlns:simple' => 'http://xrds-simple.net/core/1.0',
|
||||||
'version' => '2.0'));
|
'version' => '2.0'));
|
||||||
$this->element('Type', null, 'xri://$xrds*simple');
|
$this->element('Type', null, 'xri://$xrds*simple');
|
||||||
foreach (array('finishopenidlogin', 'finishaddopenid', 'finishimmediate') as $finish) {
|
foreach (array('finishopenidlogin', 'finishaddopenid') as $finish) {
|
||||||
$this->showService(Auth_OpenID_RP_RETURN_TO_URL_TYPE,
|
$this->showService(Auth_OpenID_RP_RETURN_TO_URL_TYPE,
|
||||||
common_local_url($finish));
|
common_local_url($finish));
|
||||||
}
|
}
|
||||||
$this->elementEnd('XRD');
|
$this->elementEnd('XRD');
|
||||||
$this->elementEnd('XRDS');
|
$this->elementEnd('XRDS');
|
||||||
common_end_xml();
|
$this->endXML();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user