]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - index.php
getGroups was not handling the case where limit=null correctly
[quix0rs-gnu-social.git] / index.php
index 644812bd55ac1c8b1549fd4446189266f3c121af..577b491ed05b677dc9480d27fd04cdafe4a7fa21 100644 (file)
--- a/index.php
+++ b/index.php
@@ -143,7 +143,7 @@ function checkMirror($action_obj, $args)
 
 function isLoginAction($action)
 {
-    static $loginActions =  array('login', 'recoverpassword', 'api', 'doc', 'register');
+    static $loginActions =  array('login', 'recoverpassword', 'api', 'doc', 'register', 'publicxrds');
 
     $login = null;
 
@@ -239,6 +239,7 @@ function main()
     if (!$user && common_config('site', 'private')
         && !isLoginAction($action)
         && !preg_match('/rss$/', $action)
+        && !preg_match('/^Api/', $action)
     ) {
         common_redirect(common_local_url('login'));
         return;