Skip to content

Node.js based forum software built for the modern web

fixes #4506

pichalitee23377580d3c
diff --git a/src/messaging/notifications.js b/src/messaging/notifications.js
index c93cb16590..61f4f5d9ce 100644
--- a/src/messaging/notifications.js
+++ b/src/messaging/notifications.js
@@ -96,7 +96,7 @@ module.exports = function(Messaging) {
message: messageObj,
site_title: meta.config.title || 'NodeBB',
url: nconf.get('url'),
- fromUserslug: utils.slugify(messageObj.fromUser.username)
+ roomId: messageObj.roomId
}, next);
}, callback);
});
diff --git a/src/views/emails/notif_chat.tpl b/src/views/emails/notif_chat.tpl
index a0669f3bac..f1d5a5fc42 100644
--- a/src/views/emails/notif_chat.tpl
+++ b/src/views/emails/notif_chat.tpl
@@ -3,7 +3,7 @@
<p>{summary}:</p>
<blockquote>{message.content}</blockquote>
-<a href="{url}/chats/{fromUserslug}">[[email:notif.chat.cta]]</a>
+<a href="{url}/chats/{roomId}">[[email:notif.chat.cta]]</a>
<!-- IMPORT emails/partials/footer.tpl -->