unescape email subject

This commit is contained in:
Baris Usakli
2018-12-05 17:38:08 -05:00
parent 6df5668e64
commit 96c1dc6276
3 changed files with 3 additions and 4 deletions

View File

@@ -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,