mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
added topic tests
This commit is contained in:
@@ -380,6 +380,12 @@ module.exports.init = function(io) {
|
||||
}
|
||||
|
||||
if (result) {
|
||||
io.sockets.in('category_' + data.category_id).emit('event:new_topic', topicData);
|
||||
io.sockets.in('recent_posts').emit('event:new_topic', topicData);
|
||||
io.sockets.in('user/' + uid).emit('event:new_post', {
|
||||
posts: postData
|
||||
});
|
||||
|
||||
posts.getTopicPostStats();
|
||||
|
||||
socket.emit('event:alert', {
|
||||
|
||||
Reference in New Issue
Block a user