No email notifications for posts that require approval

I looked into the code and after some debugging, found out that PostAlert job skipped running the
PostAlerter.post_created(post) if post && post.topic line as the post was not yet commited to database due to QueuedPost wrapping the whole thing into a transaction.

I’ll be delaying the jobs by a few seconds as a workaround, but I think that is not a real fix to this or is it?

3 Me gusta