mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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,
|
url: post.url,
|
||||||
subject_prefix: post.post_number != 1 ? "re: " : "",
|
subject_prefix: post.post_number != 1 ? "re: " : "",
|
||||||
topic_title: post.topic.title,
|
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
|
add_unsubscribe_link: true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -708,7 +708,7 @@ en:
|
|||||||
private_message:
|
private_message:
|
||||||
subject_template: "[%{site_name}] %{subject_prefix}%{topic_title}"
|
subject_template: "[%{site_name}] %{subject_prefix}%{topic_title}"
|
||||||
text_body_template: |
|
text_body_template: |
|
||||||
%{from} just sent you a private message
|
%{private_message_from} just sent you a private message
|
||||||
|
|
||||||
---
|
---
|
||||||
%{message}
|
%{message}
|
||||||
|
Loading…
Reference in New Issue
Block a user