]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correctly output public XRDS <meta>
authorEvan Prodromou <evan@status.net>
Wed, 28 Oct 2009 18:38:19 +0000 (14:38 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 28 Oct 2009 18:38:19 +0000 (14:38 -0400)
plugins/OpenID/OpenIDPlugin.php

index a933a1155510296983c2cd1bf2cdcbc7d2776bb9..560da71e7b7a1b788863286adbe0f00667163956 100644 (file)
@@ -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;
     }
 
     /**