mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
closed #212
This commit is contained in:
@@ -264,7 +264,7 @@ var RDB = require('./redis.js'),
|
||||
topics.getTopicField(tid, 'title', function(err, title) {
|
||||
topics.getTeaser(tid, function(err, teaser) {
|
||||
if (!err) {
|
||||
notifications.create(teaser.username + ' has posted a reply to: "' + title + '"', null, '/topic/' + tid, 'topic:' + tid, function(nid) {
|
||||
notifications.create('<strong>' + teaser.username + '</strong> has posted a reply to: "<strong>' + title + '</strong>"', null, '/topic/' + tid, 'topic:' + tid, function(nid) {
|
||||
next(null, nid);
|
||||
});
|
||||
} else next(err);
|
||||
|
||||
@@ -580,7 +580,7 @@ var utils = require('./../public/src/utils.js'),
|
||||
User.getUserField(uid, 'username', function(err, username) {
|
||||
RDB.smembers('followers:' + uid, function(err, followers) {
|
||||
topics.getTopicField(tid, 'slug', function(err, slug) {
|
||||
var message = username + ' made a new post';
|
||||
var message = '<strong>' + username + '</strong> made a new post';
|
||||
|
||||
notifications.create(message, 5, nconf.get('url') + 'topic/' + slug + '#' + pid, 'notification_'+ Date.now(), function(nid) {
|
||||
notifications.push(nid, followers);
|
||||
|
||||
@@ -527,7 +527,7 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }),
|
||||
|
||||
|
||||
user.getUserField(uid, 'username', function(err, username) {
|
||||
var finalMessage = username + ' : ' + msg;
|
||||
var finalMessage = 'New message from <strong>' + username + '</strong>';
|
||||
|
||||
notifications.create(finalMessage, 5, '#', 'notification_' + uid + '_' + touid, function(nid) {
|
||||
notifications.push(nid, [touid], function(success) {
|
||||
|
||||
Reference in New Issue
Block a user