Fixes broken "From" header in Private Message emails.

This commit is contained in:
Robin Ward 2013-03-01 14:56:52 -05:00
parent 7c68224763
commit 72cbb948b8
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,8 @@ class UserNotifications < ActionMailer::Base
url: post.url,
subject_prefix: post.post_number != 1 ? "re: " : "",
topic_title: post.topic.title,
from: post.user.name,
private_message_from: post.user.name,
from: "#{I18n.t(:via, username: post.user.name, site_name: SiteSetting.title)} <#{SiteSetting.notification_email}>",
add_unsubscribe_link: true
end

View File

@ -708,7 +708,7 @@ en:
private_message:
subject_template: "[%{site_name}] %{subject_prefix}%{topic_title}"
text_body_template: |
%{from} just sent you a private message
%{private_message_from} just sent you a private message
---
%{message}