Replace schemeless URLs for emails

v1.18.x
Fokke Zandbergen 10 years ago
parent d146547b53
commit 86317a4b79

@ -157,7 +157,7 @@ module.exports = function(Topics) {
pid: postData.pid, pid: postData.pid,
subject: '[' + (meta.config.title || 'NodeBB') + '] ' + title, subject: '[' + (meta.config.title || 'NodeBB') + '] ' + title,
intro: '[[notifications:user_posted_to, ' + postData.user.username + ', ' + title + ']]', intro: '[[notifications:user_posted_to, ' + postData.user.username + ', ' + title + ']]',
postBody: postData.content, postBody: postData.content.replace(/"\/\//g, '"http://'),
site_title: meta.config.title || 'NodeBB', site_title: meta.config.title || 'NodeBB',
username: data.userData.username, username: data.userData.username,
userslug: data.userData.userslug, userslug: data.userData.userslug,

Loading…
Cancel
Save