mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
removed double post notification #1386
This commit is contained in:
@@ -33,15 +33,12 @@ SocketPosts.reply = function(socket, data, callback) {
|
||||
}
|
||||
|
||||
if (postData) {
|
||||
websockets.server.sockets.emit('event:new_post', {
|
||||
posts: [postData]
|
||||
});
|
||||
|
||||
module.parent.exports.emitTopicPostStats();
|
||||
|
||||
var socketData = {
|
||||
posts: [postData]
|
||||
};
|
||||
|
||||
websockets.server.sockets.emit('event:new_post', socketData);
|
||||
|
||||
callback();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user