1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

[ticket/9837] Make unapproved posts visible to posters

Improvements for feature following review

PHPBB3-9837
This commit is contained in:
v12mike
2019-09-10 08:33:01 -04:00
committed by Marc Alexander
parent 01b0ec19c6
commit 63b7518a0f
5 changed files with 38 additions and 5 deletions

View File

@@ -899,6 +899,11 @@ if (count($topic_list))
// Replies
$replies = $phpbb_content_visibility->get_count('topic_posts', $row, $topic_forum_id) - 1;
//correct for case of unapproved topic visible to poster - a bit dirty but efficient
if ($replies < 0)
{
$replies++;
}
if ($row['topic_status'] == ITEM_MOVED)
{