mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 00:38:03 +02:00
unescape email subject
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
"outgoing_link_message": "You are now leaving %1",
|
||||
"continue_to": "Continue to %1",
|
||||
"return_to": "Return to %1",
|
||||
"new_notification": "New Notification",
|
||||
"new_notification_from": "You have a new Notification from %1",
|
||||
"new_notification": "You have a new notification",
|
||||
"you_have_unread_notifications": "You have unread notifications.",
|
||||
|
||||
"all": "All",
|
||||
|
||||
@@ -246,7 +246,7 @@ Emailer.sendToEmail = function (template, email, language, params, callback) {
|
||||
to: email,
|
||||
from: meta.config['email:from'] || 'no-reply@' + getHostname(),
|
||||
from_name: meta.config['email:from_name'] || 'NodeBB',
|
||||
subject: '[' + meta.config.title + '] ' + results.subject,
|
||||
subject: '[' + meta.config.title + '] ' + _.unescape(results.subject),
|
||||
html: results.html,
|
||||
plaintext: htmlToText.fromString(results.html, {
|
||||
ignoreImage: true,
|
||||
|
||||
@@ -243,7 +243,7 @@ function pushToUids(uids, notification, callback) {
|
||||
async.eachLimit(uids, 3, function (uid, next) {
|
||||
emailer.send('notification', uid, {
|
||||
path: notification.path,
|
||||
subject: utils.stripHTMLTags(notification.subject || '[[notifications:new_notification_from, ' + meta.config.title + ']]'),
|
||||
subject: utils.stripHTMLTags(notification.subject || '[[notifications:new_notification]]'),
|
||||
intro: utils.stripHTMLTags(notification.bodyShort),
|
||||
body: notification.bodyLong || '',
|
||||
notification: notification,
|
||||
|
||||
Reference in New Issue
Block a user