# Topic notifications emails are not being sent if adding a Staff Colour to the 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:** [June 19, 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:** 2

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [June 20, 2025, 7:20pm UTC](https://meta.discourse.org/t/topic-notifications-emails-are-not-being-sent-if-adding-a-staff-colour-to-the-post/370857/2 "2025-06-20T19:20:17Z")

</div>

I can repro this. ✋

My basic step by step:

- Adjust `email time window` to 1 minute (optional, but speeds things up)
- As admin, ensure test user is Watching First Post for a test category
- As admin, create topic in #staff category
- Use post wrench to add Staff Colour to the first(/only) post
- Set topic timer to Schedule Publishing into the test category in 1 minute
- Have a small day dream about ice cream and wait for topic to be published and for a further minute to elapse to cover the email window
- As admin, check the test user’s notifications, and then check the site’s email logs

**Expected Result:** test user receives notification about the scheduled topic and an email log is present signifying an accompanying email notification has been sent

**Actual Result:** test user receives an onsite notification but no email is sent out

(Also performed this test without the staff colour step as a control. All working fine. Both onsite notification and email notification were sent)

Is it something to do with staff colour adjusting the post\_type to ‘2’ (moderator\_action) and this not being accounted for in the code?

> <https://github.com/discourse/discourse/blob/f4bdd2f6e7ebf651994807657680faf917ec1b93/app/services/notification_emailer.rb#L78-L78>

---

_[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)._
