mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 19:26:08 +05:30
Update htmly.php
This commit is contained in:
parent
8cfbbb0090
commit
f5c1a4812a
1 changed files with 7 additions and 2 deletions
|
|
@ -296,7 +296,7 @@ get('/author/:name', function ($name) {
|
||||||
$author = $author[0];
|
$author = $author[0];
|
||||||
} else {
|
} else {
|
||||||
$userConfig = 'config/users/' . $name . '.ini';
|
$userConfig = 'config/users/' . $name . '.ini';
|
||||||
if (file_exists($userConfig)) {
|
if (file_exists($userConfig) || !empty($posts)) {
|
||||||
$author = default_profile(safe_html(strip_tags($name)));
|
$author = default_profile(safe_html(strip_tags($name)));
|
||||||
} else {
|
} else {
|
||||||
not_found();
|
not_found();
|
||||||
|
|
@ -382,7 +382,12 @@ get('/author/:name/feed', function ($name) {
|
||||||
if (isset($author[0])) {
|
if (isset($author[0])) {
|
||||||
$author = $author[0];
|
$author = $author[0];
|
||||||
} else {
|
} 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
|
// Show an RSS feed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue