From d2ffdbda7ddee4e8313dc49c4027420b6b8e44ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 3 Jan 2018 13:59:58 -0500 Subject: [PATCH] closes #6203 --- src/messaging/notifications.js | 1 + src/topics/follow.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/messaging/notifications.js b/src/messaging/notifications.js index 3116c31a2b..f0220f2929 100644 --- a/src/messaging/notifications.js +++ b/src/messaging/notifications.js @@ -76,6 +76,7 @@ module.exports = function (Messaging) { notifications.create({ type: 'new-chat', + subject: '[[notifications:new_message_from, ' + messageObj.fromUser.username + ']]', bodyShort: '[[notifications:new_message_from, ' + messageObj.fromUser.username + ']]', bodyLong: messageObj.content, nid: 'chat_' + fromuid + '_' + roomId, diff --git a/src/topics/follow.js b/src/topics/follow.js index aad9c0f079..05b98cc95d 100644 --- a/src/topics/follow.js +++ b/src/topics/follow.js @@ -220,7 +220,7 @@ module.exports = function (Topics) { notifications.create({ type: 'new-reply', - subject: '[' + (meta.config.title || 'NodeBB') + '] ' + title, + subject: title, bodyShort: '[[notifications:user_posted_to, ' + postData.user.username + ', ' + titleEscaped + ']]', bodyLong: postData.content, pid: postData.pid,