A bug was reported where custom flag text from regular users does not appear in the moderator inbox, while it works for moderators. Chris_S first noted the issue on a site running Discourse 1.9.0.beta16, and schyllberg confirmed it affects their site, community.infinite-flight.com. jomaxro reproduced the issue with a non-staff user flagging a post. The problem was traced to a security fix that restricted regular users from attaching notes to flags, as it involved inviting groups to view them. eviltrout identified the root cause and assigned it to tgxworld, who fixed it in a commit. The fix was deployed to the site, but initial testing revealed a 422 error due to a missing periodic job. After running the job, schyllberg confirmed the issue was resolved.
Received flag does not show user entered text reason. This makes it difficult to moderate posts as moderators have to Pm the user to see why the flag was submitted.
Steps to Reproduce:
User flags a post.
Flag is sent to moderators/staff.
Expected Results:
Flag is shown with user entered custom text
Actual Results:
Flag is shown as custom but no reason is displayed even though the user entered one.
Pude probarlo esta noche. No puedo reproducir un mensaje faltante de una bandera personalizada en un mensaje o en un tema. Lo vi el viernes (ver abajo), pero no pude probarlo entonces.
This is being caused by this security fix. When attaching a note to a flag it invites groups to view it, and as a regular user you can no longer do this. Re-assigning this to @tgxworld since it’s related to a security fix that I don’t want to break.