FIX: Don't incldue whispers in context emails

This commit is contained in:
Robin Ward 2015-09-30 12:39:56 -04:00
parent 33e58c0587
commit 7bd51e7882

View file

@ -175,6 +175,7 @@ class UserNotifications < ActionMailer::Base
.where("post_number < ?", post.post_number)
.where(user_deleted: false)
.where(hidden: false)
.where(post_type: Topic.visible_post_types)
.order('created_at desc')
.limit(SiteSetting.email_posts_context)