No email notifications for posts that require approval

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

4 „Gefällt mir“