forked from GNUsocial/gnu-social
correctly output public XRDS <meta>
This commit is contained in:
parent
6c615f6801
commit
e25716d180
@ -150,13 +150,17 @@ class OpenIDPlugin extends Plugin
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function onEndHeadChildren($action)
|
function onEndShowHeadElements($action)
|
||||||
{
|
{
|
||||||
|
if ($action->trimmed('action') == 'public') {
|
||||||
// for client side of OpenID authentication
|
// for client side of OpenID authentication
|
||||||
$action->element('meta', array('http-equiv' => 'X-XRDS-Location',
|
$action->element('meta', array('http-equiv' => 'X-XRDS-Location',
|
||||||
'content' => common_local_url('publicxrds')));
|
'content' => common_local_url('publicxrds')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redirect to OpenID login if they have an OpenID
|
* Redirect to OpenID login if they have an OpenID
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user