mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
closes #2284
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
var async = require('async'),
|
||||
nconf = require('nconf'),
|
||||
winston = require('winston'),
|
||||
S = require('string'),
|
||||
|
||||
user = require('../user'),
|
||||
utils = require('../../public/src/utils'),
|
||||
@@ -240,8 +241,13 @@ var async = require('async'),
|
||||
return;
|
||||
}
|
||||
|
||||
var title = topicData.title;
|
||||
if (title) {
|
||||
title = S(title).decodeHTMLEntities().s;
|
||||
}
|
||||
|
||||
notifications.create({
|
||||
bodyShort: '[[notifications:user_posted_topic, ' + postData.user.username + ', ' + topicData.title + ']]',
|
||||
bodyShort: '[[notifications:user_posted_topic, ' + postData.user.username + ', ' + title + ']]',
|
||||
bodyLong: postData.content,
|
||||
pid: postData.pid,
|
||||
nid: 'tid:' + postData.tid + ':pid:' + postData.pid + ':uid:' + uid,
|
||||
|
||||
Reference in New Issue
Block a user