FIX: Forgot to clear out a topic excerpt

This commit is contained in:
Robin Ward
2017-04-27 11:49:39 -04:00
parent 2efe0442bf
commit a545117d2e

View File

@@ -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