# Le email di notifica degli argomenti non vengono inviate se si aggiunge un Colore Staff al post

**URL:** https://meta.discourse.org/t/topic-notifications-emails-are-not-being-sent-if-adding-a-staff-colour-to-the-post/370857
**Category:** Bug
**Created:** [19 Giugno 2025, 12:02pm UTC](https://meta.discourse.org/t/topic-notifications-emails-are-not-being-sent-if-adding-a-staff-colour-to-the-post/370857 "2025-06-19T12:02:54Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [11 Febbraio 2026, 10:27am UTC](https://meta.discourse.org/t/topic-notifications-emails-are-not-being-sent-if-adding-a-staff-colour-to-the-post/370857/6 "2026-02-11T10:27:00Z")

</div>

> [@sam](#):
>
> Aggiunto un pri-medium (entro le prossime 4 settimane) in modo che il team possa dare un’occhiata.

Meglio tardi che mai ?! 😅

> <https://github.com/discourse/discourse/pull/37712>
>
> When a staff member applies "Staff Colour" to a post, it changes \`post\_type\` fro…m \`regular\` (1) to \`moderator\_action\` (2). The \`NotificationEmailer\` only sent emails for \`regular\` and \`whisper\` post types, so staff-coloured posts silently skipped email delivery. The same issue affected \`PostAlerter\`'s \`@here\` mention expansion which also filtered on post type.
> 
> This is safe to fix because the only two places that needed updating are \`NotificationEmailer::EMAILABLE\_POST\_TYPES\` and
> \`PostAlerter#expand\_here\_mention\`. System-generated moderator posts (close/split/merge) never reach this code — \`PostJobsEnqueuer\` skips them via \`skip\_after\_create?\`, so they never generate the notification types that flow through \`NotificationEmailer\`. Similarly, system moderator posts don't contain \`@here\` mentions, so adding \`moderator\_action\` to \`expand\_here\_mention\` is equally safe.
> 
> https://meta.discourse.org/t/370857

---

_[View the full topic](https://meta.discourse.org/t/topic-notifications-emails-are-not-being-sent-if-adding-a-staff-colour-to-the-post/370857)._
