FIX: show invited by username when inviting to topic

This commit is contained in:
Arpit Jalan 2016-04-13 11:00:25 +05:30
parent 8ba57c0ffd
commit 51d194cc21

View File

@ -333,7 +333,7 @@ class UserNotifications < ActionMailer::Base
invite_template = "user_notifications.invited_to_topic_body"
end
topic_excerpt = post.excerpt.gsub("\n", " ") if post.is_first_post? && post.excerpt
message = I18n.t(invite_template, username: post.username, topic_title: title, topic_excerpt: topic_excerpt, site_title: SiteSetting.title, site_description: SiteSetting.site_description)
message = I18n.t(invite_template, username: username, topic_title: title, topic_excerpt: topic_excerpt, site_title: SiteSetting.title, site_description: SiteSetting.site_description)
html = UserNotificationRenderer.new(Rails.configuration.paths["app/views"]).render(
template: 'email/invite',
format: :html,