mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 11:22:46 +08:00
Fixes broken "From" header in Private Message emails.
This commit is contained in:
parent
7c68224763
commit
72cbb948b8
|
@ -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
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user