mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
closes #503
This commit is contained in:
@@ -380,10 +380,10 @@ module.exports.init = function(io) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
io.sockets.in('category_' + data.category_id).emit('event:new_topic', topicData);
|
io.sockets.in('category_' + data.category_id).emit('event:new_topic', result.topicData);
|
||||||
io.sockets.in('recent_posts').emit('event:new_topic', topicData);
|
io.sockets.in('recent_posts').emit('event:new_topic', result.topicData);
|
||||||
io.sockets.in('user/' + uid).emit('event:new_post', {
|
io.sockets.in('user/' + uid).emit('event:new_post', {
|
||||||
posts: postData
|
posts: result.postData
|
||||||
});
|
});
|
||||||
|
|
||||||
posts.getTopicPostStats();
|
posts.getTopicPostStats();
|
||||||
|
|||||||
Reference in New Issue
Block a user