Looks to be be an issue with the latest update that was made on version 3.1.0.beta6
Bug Report
Priority/Severity: Medium - The issue prevents posts from being displayed correctly to users who are waiting for post approval, which is a core functionality of Discourse.
Platform: Discourse version 3.1.0.beta6. The issue seems to be platform-independent as it’s related to a recent update.
Description: After the recent update to Discourse version 3.1.0.beta6, posts are not being displayed as expected. The issue seems to be related to the PostSerializer class, which was updated in the recent version. The posts work as expected in the previous version 3.1.0.beta5.
ACTUAL Result: Awaiting Approval Posts are not being displayed after the page is refreshed as expected.
EXPECTED Result: Awaiting Approval posts should be displayed correctly as they were in the previous version.
Reproducible steps:
- Update Discourse to version
3.1.0.beta6. - Make sure that
approve post countor any of the other post approval settings is setup. - Create a new post or view an existing post.
- Observe that the post is not displayed as expected.
Additional Notes: The issue seems to be possibly related to the recent update (July 21st, 2023) to the PostSerializer and/or PostGuardian. The posts work as expected in the previous version 3.1.0.beta5. The issue needs to be investigated further to identify the exact cause and fix.
Screenshots/Video:
- Screen Recording of Issue where “Awaiting Approval” post disappears after refresh
- Screen Recording of Refreshing the page on version
3.1.0.beta5where “Awaiting Approval” post persists as expected 