# TypeError when submitting a flag with custom content (require\_message flags)

**URL:** <https://meta.discourse.org/t/typeerror-when-submitting-a-flag-with-custom-content-require-message-flags/403133>\
**Category:** Bug\
**Tags:** fixed\
**Created:** [May 16, 2026, 2:45am UTC](https://meta.discourse.org/t/typeerror-when-submitting-a-flag-with-custom-content-require-message-flags/403133 "2026-05-16T02:45:08Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![tannerabread](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tannerabread/32/526153_2.png) [@tannerabread](https://meta.discourse.org/u/tannerabread)\
**Post date:** [July 21, 2026, 9:14pm UTC](https://meta.discourse.org/t/typeerror-when-submitting-a-flag-with-custom-content-require-message-flags/403133/13 "2026-07-21T21:14:32Z")

</div>

The fix for the main bug is now in `latest` and should resolve the issue. I.e. it should be identical to non-nested topic replies.

* * *

> [@cuo\_wu](#):
>
> **Secondary bug**
> 
> There is also a broken comparison in `flag.gjs`:

I decided to separate this one because it’s not the same behavior, and will fix this as well soon.

---

_[View the full topic](https://meta.discourse.org/t/typeerror-when-submitting-a-flag-with-custom-content-require-message-flags/403133)._
