# Flag reason/s

**URL:** https://meta.discourse.org/t/flag-reason-s/244417
**Category:** Support
**Created:** [November 4, 2022, 7:35pm UTC](https://meta.discourse.org/t/flag-reason-s/244417 "2022-11-04T19:35:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Michel\_Gignac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michel_gignac/32/242076_2.png) [@Michel\_Gignac](https://meta.discourse.org/u/Michel_Gignac)
#### Post date: [November 4, 2022, 7:35pm UTC](https://meta.discourse.org/t/flag-reason-s/244417/1 "2022-11-04T19:35:29Z")

</div>

Is it me or flag\_reson and flag\_reasons are all replaced with the full descriptive reason. i.e.:

`{« off_topic »=>« Votre message a été signalé comme étant **hors sujet** : la communauté considère qu’il ne correspond pas au sujet en question qui est défini par son titre et son premier message. », « inappropriate »=>« Votre message a été signalé comme étant **répréhensible** : la communauté a estimé que son contenu était offensant, injurieux, violent ou qu’il enfreignait notre [charte communautaire](https://apqs.discourse.group/). », « spam »=>« Votre message a été signalé comme étant du **spam** : la communauté considère qu’il s’agit d’une publicité ou du contenu trop promotionnel au lieu d’être utile et pe...`

I was thinking that flag\_reason is replaced by the reason,  
and flag\_reason **s** was replaced by the descriptive list.

Am I doing something wrong?

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [November 10, 2022, 2:26am UTC](https://meta.discourse.org/t/flag-reason-s/244417/4 "2022-11-10T02:26:37Z")

</div>

Can you confirm what it is you are trying to do?

Below we see a set of `flag_reasons`:

 ![Screen Shot 2022-11-09 at 5.39.45 PM](https://global.discourse-cdn.com/meta/original/4X/1/b/8/1b8d207ac8c19c2d2b85b0d6ef95e347be0ed6a0.png)

These all relate to the various flag options:

 ![Screen Shot 2022-11-09 at 5.46.24 PM](https://global.discourse-cdn.com/meta/original/4X/9/a/0/9a0426a581e7649fbd05596c3dc323a892166aed.png)

The `flag_reasons.<some_reason>` strings make up part of the message that is sent to a user to let them know that their post was flagged/removed.

The `flag_reasons.responder.<some_reason>` makes up part of the message that is sent to users **who responded** to a flagged post that was removed. This feature was introduced in [FEATURE: Notify responders of post removal by janzenisaac · Pull Request #15049 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/15049) and is default disabled. It can be enabled via the `notify_users_after_responses_deleted_on_flagged_post` site setting.

* * *

There are also a couple of `flag_reason` (no `s`) strings:

 ![Screen Shot 2022-11-09 at 5.40.41 PM](https://global.discourse-cdn.com/meta/original/4X/6/d/6/6d626a9b43cc95c22079906f94c3ad4ad406dad8.png)

These are used in the reviewable descriptions of automatically flagged posts. The text is only ever shown to admins and moderators:

 ![Screen Shot 2022-11-09 at 6.22.13 PM copy](https://global.discourse-cdn.com/meta/original/4X/8/2/b/82b39d0450d0a6bc50eef2694f97179ae9e097b6.png)

---

<div class="post-metadata">

### Author: ![Michel\_Gignac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michel_gignac/32/242076_2.png) [@Michel\_Gignac](https://meta.discourse.org/u/Michel_Gignac)
#### Post date: [November 10, 2022, 4:40am UTC](https://meta.discourse.org/t/flag-reason-s/244417/5 "2022-11-10T04:40:34Z")

</div>

Thanks for your time Taylor.

Yes, and it works. But, the email is not well formatted. It includes all the flag reasons, unformatted (shown in my original post), instead of the flag reason selected by the moderator.

---

<div class="post-metadata">

### Author: ![MarkDoerr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markdoerr/32/549630_2.png) [@MarkDoerr](https://meta.discourse.org/u/MarkDoerr)
#### Post date: [November 10, 2022, 5:34pm UTC](https://meta.discourse.org/t/flag-reason-s/244417/9 "2022-11-10T17:34:43Z")

</div>

Michel,

Could you forward us a copy of the malformed email? Can you also tell us which email client were you or the user viewing the message with?

Mark

---

<div class="post-metadata">

### Author: ![Michel\_Gignac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michel_gignac/32/242076_2.png) [@Michel\_Gignac](https://meta.discourse.org/u/Michel_Gignac)
#### Post date: [November 10, 2022, 7:47pm UTC](https://meta.discourse.org/t/flag-reason-s/244417/10 "2022-11-10T19:47:16Z")

</div>

I use Outlook, but honestly, I’m pretty sure that I have the wrong placeholder (flag\_reason) in my template, or is replaced with the wrong content :

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/d/3/6d35023e3566241c2fe1bf4ce5f0ed4da30b04e4.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/f/0/bf027c5a41076b091fd54bd1c54ca134ed7ede3b.png)
