diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index 52e91f644..a5b73f5db 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -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)