From: Evan Prodromou Date: Wed, 28 Oct 2009 18:38:19 +0000 (-0400) Subject: correctly output public XRDS X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e25716d1801064c00cbb8d06313866f00476fbba;p=quix0rs-gnu-social.git correctly output public XRDS --- diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index a933a11555..560da71e7b 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -150,11 +150,15 @@ class OpenIDPlugin extends Plugin * @return void */ - function onEndHeadChildren($action) + function onEndShowHeadElements($action) { - // for client side of OpenID authentication - $action->element('meta', array('http-equiv' => 'X-XRDS-Location', - 'content' => common_local_url('publicxrds'))); + if ($action->trimmed('action') == 'public') { + // for client side of OpenID authentication + $action->element('meta', array('http-equiv' => 'X-XRDS-Location', + 'content' => common_local_url('publicxrds'))); + } + + return true; } /**