From f5c1a4812af51c3819acf907115cd5625acf7943 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 4 Jul 2025 19:19:57 +0700 Subject: [PATCH] Update htmly.php --- system/htmly.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/system/htmly.php b/system/htmly.php index daa1580..d9bb9ea 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -296,7 +296,7 @@ get('/author/:name', function ($name) { $author = $author[0]; } else { $userConfig = 'config/users/' . $name . '.ini'; - if (file_exists($userConfig)) { + if (file_exists($userConfig) || !empty($posts)) { $author = default_profile(safe_html(strip_tags($name))); } else { not_found(); @@ -382,7 +382,12 @@ get('/author/:name/feed', function ($name) { if (isset($author[0])) { $author = $author[0]; } else { - $author = default_profile(safe_html(strip_tags($name))); + $userConfig = 'config/users/' . $name . '.ini'; + if (file_exists($userConfig) || !empty($posts)) { + $author = default_profile(safe_html(strip_tags($name))); + } else { + not_found(); + } } // Show an RSS feed