From a545117d2e64fdd56656552785f9b3ced4e7b503 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 27 Apr 2017 11:49:39 -0400 Subject: [PATCH] FIX: Forgot to clear out a topic excerpt --- app/mailers/user_notifications.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index 947680b4ac7..dff3331aa0a 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -407,6 +407,7 @@ class UserNotifications < ActionMailer::Base invite_template = "user_notifications.invited_to_topic_body" end topic_excerpt = post.excerpt.tr("\n", " ") if post.is_first_post? && post.excerpt + topic_excerpt = "" if SiteSetting.private_email? message = I18n.t(invite_template, username: username, topic_title: gsub_emoji_to_unicode(title), topic_excerpt: topic_excerpt, site_title: SiteSetting.title, site_description: SiteSetting.site_description) unless translation_override_exists