X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=06ff9900fd5bff24466be4cbd6ee5ffaeb87ac6e;hb=a80fdf3142d05bdae77874acc7413cbbd70fad3d;hp=605b380bf89412a8cebb3c53988f4c6d5b079d3a;hpb=fa9ae594454793b20c22959750043d19224c9ff4;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index 605b380bf8..06ff9900fd 100644 --- a/index.php +++ b/index.php @@ -285,8 +285,9 @@ function main() if (!$user && common_config('site', 'private') && !isLoginAction($action) && !preg_match('/rss$/', $action) - && !preg_match('/^Api/', $action) - ) { + && $action != 'robotstxt' + && !preg_match('/^Api/', $action)) { + // set returnto $rargs =& common_copy_args($args); unset($rargs['action']);