Kunena / Kunena-Forum

Kunena Forum - Forum / Bulletin Board / Discussions component for Joomla - This is the 6.x/5.x main development branch. Please do not open issues regarding earlier versions of Kunena
https://www.kunena.org
GNU General Public License v3.0
1.75k stars 812 forks source link

Incorrect counting of reply statistics if new post moderation is enabled #9619

Open cmirnow opened 9 months ago

cmirnow commented 9 months ago

Describe the bug If the option Components -> Kunena Forum -> Configuration -> Security -> Moderate New Users -> not 0, immediately after the moderator approves a new post, the statistics of its replies on the forum frontend for all users (including guests) except the administrator is equal to 1. If the administrator is logged in, the number of replies to this post is again equal to 0 (only the administrator can see this).

System information

Joomla version: 5.0.2 Kunena version: 6.2.3 Php version: 8.2.15 Database version: 11.1.3-MariaDB

github-actions[bot] commented 9 months ago

Thank you for the report, we will looking soon at the issue

rich20 commented 9 months ago

https://www.kunena.org/forum/general-questions-and-how-tos/168334-kunena-adds-1-to-post-reply-statistics Confirmed

To Reproduce

  1. Configuration (tab Security) set Moderate New Users
  2. Create a new topic with a new user
  3. Note the number of topics on the index page
  4. Approve the topic
  5. Go to the Index page (it has added 2 topics)
  6. Go as guest or registered user to Recent Topics (it shows this new topic with an answer even though there is no answer)

Result

Additional context It is therefore essential to recount the statistics after each approved topic.

cmirnow commented 9 months ago

It is therefore essential to recount the statistics after each approved topic.

@rich20 , I'm gonna have to add it. Recount the statistics in this case does nothing.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 30 days with no activity.