From 8ba2513841c2f95c1ea801ab0887dce155c08a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?s=C3=B8renpeter?= Date: Sun, 8 Dec 2024 18:37:33 +0100 Subject: [PATCH] Version with dots instead of dashes --- VERSION | 2 +- libs/twtxt.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index d4b68c1..a22da3b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2024-12-06 +2024.12.06 diff --git a/libs/twtxt.php b/libs/twtxt.php index f3cbec9..bebbff2 100644 --- a/libs/twtxt.php +++ b/libs/twtxt.php @@ -331,7 +331,7 @@ function updateCachedFile($filePath) { $lastModifiedTime = file_exists($cacheFilePath) ? filemtime($cacheFilePath) : false; $lastModifiedHeader = $lastModifiedTime ? gmdate('D, d M Y H:i:s', $lastModifiedTime) . ' GMT' : null; - # echo "lastModifiedHeader: $lastModifiedHeader
\n"; + #echo "lastModifiedHeader: $lastModifiedHeader
\n"; global $config; global $agentVersion; @@ -349,6 +349,10 @@ function updateCachedFile($filePath) { } # TODO: Add a validation for the nickname. For example at least 1 character. + // if ($nick === "") { + // die("Check your config.ini file. 'public_nick' not valid"); + // } + $agentName = 'timeline'; $userAgentHeader = "User-Agent: $agentName/$agentVersion (+$url; @$nick)\r\n";