From b43c8f7342af600073b1258b376a14a745355339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?s=C3=B8renpeter?= Date: Mon, 13 Nov 2023 20:10:04 +0100 Subject: [PATCH] not sure i change something - just in case --- index.php | 3 ++- partials/header.php | 4 ++-- partials/profile.php | 12 ++++++------ views/home.php | 3 ++- views/profile.php | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/index.php b/index.php index fe826ce..8ab3ed3 100644 --- a/index.php +++ b/index.php @@ -33,7 +33,8 @@ $routes = [ '/refresh' => 'load_twt_files.php', '/login' => 'login.php', '/logout' => 'logout.php', - '/profile/([a-zA-Z0-9_-]+)' => 'profile.php', + '/profile' => 'profile.php', + //'/profile/([a-zA-Z0-9_-]+)' => 'profile.php', '/conv/([a-zA-Z0-9]{7})' => 'conv.php', // matches only twtHash of exactly 7 alphanumeric characters '/post/([a-zA-Z0-9]{7})' => 'post.php', // matches only twtHash of exactly 7 alphanumeric characters ]; diff --git a/partials/header.php b/partials/header.php index 9794723..d91d584 100644 --- a/partials/header.php +++ b/partials/header.php @@ -18,8 +18,8 @@ $profile = getTwtsFromTwtxtString($config['public_txt_url']);

- Timeline for nick ?>@mainURL, PHP_URL_HOST); ?> - + nick ?>@mainURL, PHP_URL_HOST); ?> +