mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 07:04:12 +08:00
Related to the report here: https://meta.discourse.org/t/how-to-understand-the-request-revision-feature/397258 Currently a rejected queued post shows "Yes" under the heading "Moderator actions" because the context question was gated on `status === PENDING` — but that gate doesn't make sense here because there's still the possibility of approving the content after the post is rejected. <img width="650" height="166" alt="image" src="https://github.com/user-attachments/assets/9b090fb9-d028-47e9-ba32-0f51a57acc64" /> This adjusts the gating so that `userReviewableContextQuestion` will render regardless of status. So now we get the correct header after the item is rejected while suppressing it in the "scrub record" case <img width="600" alt="image" src="https://github.com/user-attachments/assets/adba0a43-fa18-4738-88a0-4f309ec692c7" /> <img width="600" alt="image" src="https://github.com/user-attachments/assets/f8fe8631-8ffe-4a31-953e-232d97a1f05b" /> Included a spec to make sure it doesn't regress. |
||
|---|---|---|
| .. | ||
| components | ||
| modals | ||
| pages | ||
| cdp.rb | ||