diff --git a/web/src/index.php b/web/src/index.php index 6053ec7..c59f37a 100644 --- a/web/src/index.php +++ b/web/src/index.php @@ -33,6 +33,16 @@ function module($ns, $die = false) { } +# /@username +if (preg_match('/^\/\@[a-zA-Z0-9\-\_]+/', $uri)) +{ + if ($_SERVER['HTTP_ACCEPT'] === 'application/activity+json') + redirect( substr($uri, 2) ); + + module('public.profile', true); +} + + ################ # module ROUTING @@ -50,13 +60,3 @@ foreach ($routes_config as $rcfg) { module($module, true); } } - - -# /@username -if (preg_match('/^\/\@[a-zA-Z0-9\-\_]+/', $uri)) -{ - if ($_SERVER['HTTP_ACCEPT'] === 'application/activity+json') - redirect( substr($uri, 2) ); - - req_pub('profile'); -}