diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index 476a0903924..9192ea6e7c4 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -54,7 +54,7 @@ class UserNotifications < ActionMailer::Base featured_topic_ids = @featured_topics.map(&:id) @new_topics_since_seen = Topic.new_since_last_seen(user, min_date, featured_topic_ids).count - if @new_topics_since_seen > 1000 + if @new_topics_since_seen > SiteSetting.digest_topics category_counts = Topic.new_since_last_seen(user, min_date, featured_topic_ids).group(:category_id).count @new_by_category = [] diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 980806f1708..9cd96523049 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -56,7 +56,9 @@
<%= t('user_notifications.digest.more_topics_category', last_seen_at: @last_seen_at, new_topics_since_seen: @new_topics_since_seen) %>