Awaiting Approval Post Display Issue Following Update to Discourse Version 3.1.0.beta6

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:

  1. Update Discourse to version 3.1.0.beta6.
  2. Make sure that approve post count or any of the other post approval settings is setup.
  3. Create a new post or view an existing post.
  4. 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:

5 Likes