Notification of a flag is shown but no active flag present
A user, adundovi, reported an issue where a flag notification is shown, but there’s no active flag listed. cpradio suggested enabling Post Moderation Queue, but later realized it might be related to the “approve post count” setting. adundovi fixed the issue by changing the “approve post count” setting, revealing a pending post. They suggested this behavior should be considered a bug and proposed a solution to hide the “Needs Approval” menu item when no posts are pending.
cpradio and eviltrout agreed that this issue has come up enough times, and a fix has been committed to GitHub to ensure the link shows up even if the feature is disabled. zogstrip humorously referred to this as “Complaints Driven Development”.
I have the same situation described as here, except that I have administration account, and the newest version of Discourse, so I should definitely see flagged PM. The flag notification is there, but there is no active flag listed.
I tried to rebuild Discoure’s container but it didn’t help. Is there any way to easily trace back where the “count” of flags is created?
Thank you @cpradio I’ve fixed it thanks to your advice.
I’ve changed “approve post count” to some number. After that “Needs Approval” showed in “hamburger” menu where I found one post pending. I think that this behaviour should be considered as a bug and solution would be to add an additional check for showing this “Needs Approval” item in the menu, something like this in pseudocode:
if settings.approve_post_count == 0 and pending_posts == 0:
menu.needs_approval.hide()