]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moved oembed endpointer so openid no longer incorrectly prompts for authentication
authorCraig Andrews <candrews@integralblue.com>
Fri, 17 Jul 2009 21:11:26 +0000 (17:11 -0400)
committerCraig Andrews <candrews@integralblue.com>
Fri, 17 Jul 2009 21:11:26 +0000 (17:11 -0400)
lib/router.php

index bf3895bf016445096b34b8125f3168481295f649..5e0fcfc9465e0cc2feac4d5e5b612271e3b7ee88 100644 (file)
@@ -113,11 +113,6 @@ class Router
 
         $m->connect('main/tagother/:id', array('action' => 'tagother'));
 
-        $m->connect('main/:method',
-                    array('action' => 'api',
-                          'method' => 'oembed(.xml|.json)?',
-                          'apiaction' => 'oembed'));
-
         // these take a code
 
         foreach (array('register', 'confirmaddress', 'recoverpassword') as $c) {
@@ -134,6 +129,11 @@ class Router
             $m->connect('index.php?action=' . $action, array('action' => $action));
         }
 
+        $m->connect('main/:method',
+                    array('action' => 'api',
+                          'method' => 'oembed(.xml|.json)?',
+                          'apiaction' => 'oembed'));
+
         // settings
 
         foreach (array('profile', 'avatar', 'password', 'openid', 'im',