Skip to content

Node.js based forum software built for the modern web

Make topicSlug and postCount available to email notifications, so these can be used in template if needed

Danijelba2d191f807d
diff --git a/src/topics/follow.js b/src/topics/follow.js
index 1efa4cdc44..c0cb715c9d 100644
--- a/src/topics/follow.js
+++ b/src/topics/follow.js
@@ -233,6 +233,8 @@ module.exports = function(Topics) {
username: data.userData.username,
userslug: data.userData.userslug,
url: nconf.get('url') + '/topic/' + postData.topic.tid,
+ topicSlug: postData.topic.slug,
+ postCount: postData.topic.postcount,
base_url: nconf.get('url')
}, next);
} else {