From: Zach Copley Date: Thu, 5 Nov 2009 05:33:59 +0000 (-0800) Subject: Allow all API calls, even if the site is configured as private. The X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbeae998840fb58ac2fbb8779f14eb2abe74cd08;p=quix0rs-gnu-social.git Allow all API calls, even if the site is configured as private. The API Actions will decide whether something requires auth or a redirect. --- diff --git a/index.php b/index.php index 3acdba3754..577b491ed0 100644 --- a/index.php +++ b/index.php @@ -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;