Skip to content

Node.js based forum software built for the modern web

closes #6202

Barış Soner Uşaklı2661a31227c5
diff --git a/src/notifications.js b/src/notifications.js
index 6a7940d50d..4bf9782e61 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -220,7 +220,7 @@ function pushToUids(uids, notification, callback) {
async.eachLimit(uids, 3, function (uid, next) {
emailer.send('notification', uid, {
path: notification.path,
- subject: '[[notifications:new_notification_from, ' + meta.config.title + ']]',
+ subject: notification.subject || '[[notifications:new_notification_from, ' + meta.config.title + ']]',
intro: utils.stripHTMLTags(notification.bodyShort),
body: utils.stripHTMLTags(notification.bodyLong || ''),
showUnsubscribe: true,
diff --git a/src/topics/follow.js b/src/topics/follow.js
index cf8754bcc5..aad9c0f079 100644
--- a/src/topics/follow.js
+++ b/src/topics/follow.js
@@ -9,6 +9,7 @@ var notifications = require('../notifications');
var privileges = require('../privileges');
var plugins = require('../plugins');
var utils = require('../utils');
+var meta = require('../meta');
module.exports = function (Topics) {
Topics.toggleFollow = function (tid, uid, callback) {
@@ -219,6 +220,7 @@ module.exports = function (Topics) {
notifications.create({
type: 'new-reply',
+ subject: '[' + (meta.config.title || 'NodeBB') + '] ' + title,
bodyShort: '[[notifications:user_posted_to, ' + postData.user.username + ', ' + titleEscaped + ']]',
bodyLong: postData.content,
pid: postData.pid,