# No email notifications for posts that require approval

**URL:** <https://meta.discourse.org/t/no-email-notifications-for-posts-that-require-approval/48792>\
**Category:** Bug\
**Created:** [Août 18, 2016, 10:34 UTC](https://meta.discourse.org/t/no-email-notifications-for-posts-that-require-approval/48792 "2016-08-18T10:34:10Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [Août 23, 2016, 8:09 UTC](https://meta.discourse.org/t/no-email-notifications-for-posts-that-require-approval/48792/8 "2016-08-23T20:09:06Z")

</div>

I briefly looked into what was involved with `PostCreator` to detect whether it was in a transaction and to enqueue the jobs afterwards but it seemed like a nightmare due to Rails’ internals. I think long term there is a better way to structure the `PostCreator` object to prevent this, but the following fix should solve this particular case:

[https://github.com/discourse/discourse/commit/2cb4cb7b7286f8bcfc9da094b35c0aedf7d7ce0a](https://github.com/discourse/discourse/commit/2cb4cb7b7286f8bcfc9da094b35c0aedf7d7ce0a)

---

_[View the full topic](https://meta.discourse.org/t/no-email-notifications-for-posts-that-require-approval/48792)._
