Fix username posts count

If username has underscore
This commit is contained in:
danpros 2024-01-09 23:51:44 +07:00
commit 29c65d9659
2 changed files with 12 additions and 6 deletions

View file

@ -894,7 +894,7 @@ get('/admin/mine', function () {
$posts = get_profile_posts($name, $page, $perpage);
$total = get_count($name, 'dirname');
$total = get_count('/'.$name.'/', 'dirname');
$author = get_author($name);