Skip to content

Node.js based forum software built for the modern web

Replace schemeless URLs for emails

Fokke Zandbergen86317a4b7995
diff --git a/src/topics/follow.js b/src/topics/follow.js
index 082a49f024..cf63b101e0 100644
--- a/src/topics/follow.js
+++ b/src/topics/follow.js
@@ -157,7 +157,7 @@ module.exports = function(Topics) {
pid: postData.pid,
subject: '[' + (meta.config.title || 'NodeBB') + '] ' + 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',
username: data.userData.username,
userslug: data.userData.userslug,