PERF: Move post alerting into async

This commit is contained in:
Robin Ward
2015-04-20 13:34:57 -04:00
parent 6ae58d41a7
commit 5990ab855b
5 changed files with 22 additions and 2 deletions

View File

@@ -190,6 +190,7 @@ class PostAlerter
exclude_user_ids << reply_to_user.id if reply_to_user.present?
exclude_user_ids.flatten!
TopicUser
.where(topic_id: post.topic_id, notification_level: TopicUser.notification_levels[:watching])
.includes(:user).each do |tu|