diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index cb1e2f5ca0b..77b7335959c 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -155,9 +155,6 @@ class UserNotifications < ActionMailer::Base [] end - topic_lookup = TopicUser.lookup_for(user, @other_new_for_you) - @other_new_for_you.each { |t| t.user_data = topic_lookup[t.id] } - if @popular_topics.present? opts = { from_alias: I18n.t('user_notifications.digest.from', site_name: SiteSetting.title), diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 27a7d393106..0b6a9d8d6c2 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -330,11 +330,6 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo
- <%= t.user_data ? (t.highest_post_number - (t.user_data.last_read_post_number || 0)) : t.highest_post_number %> -
-