Add emails to Resque mailer queue after commit

Description

Now that the PR for has added the gem after_commit_everywhere, it'd be nice to reduce the number of email job failures in Resque by making as many emails as possible be sent after commit, to ensure that they won't be trying to look up information from the database before it's been committed.

Testing Instructions: The particular emails that need to be checked will depend on the PR, but will probably include most of the following:

  1. Notifications about comments sent to the work's creators.

  2. Notifications about comments on admin posts.

  3. Notifications about replies to logged-out users' comments.

  4. Notifications about replies to logged-in users' comments.

  5. Notifications about comment edits.

  6. Gift notifications on posting.

  7. Gift notifications on reveals.

  8. Notifications about fulfilling a claimed prompt on posting.

  9. Notifications about fulfilling a claimed prompt on reveals.

  10. Related work notifications (though beware of and ).

Assignee

ticking instant

Reporter

ticking instant

Roadmap

Challenges
Collections
Comments
Works

Priority

High

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Milestone

Internal 0.9
Configure