Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cmirnow opened this issue Feb 6, 2024 · 4 comments
Open

Comments

@cmirnow
Copy link

cmirnow commented Feb 6, 2024

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

Copy link

github-actions bot commented Feb 6, 2024

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

@rich20
Copy link
Member

rich20 commented Feb 6, 2024

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

  • An approved topic is counted twice on the Index page.
  • A new topic with an answer is displayed on the Recent Topics page for registered users and guests.

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

@cmirnow
Copy link
Author

cmirnow commented Feb 6, 2024

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.

Copy link

github-actions bot commented Mar 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants