mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 19:41:16 +01:00
creating topics shows up in user profile too issue #220
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
socket.on('event:new_post', function(data) {
|
||||
var html = templates.prepare(templates['account'].blocks['posts']).parse(data);
|
||||
$('.user-recent-posts').prepend(html);
|
||||
})
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -679,6 +679,7 @@ var RDB = require('./redis.js')
|
||||
Topics.getTopicForCategoryView(tid, uid, function(topicData) {
|
||||
io.sockets.in('category_' + category_id).emit('event:new_topic', topicData);
|
||||
io.sockets.in('recent_posts').emit('event:new_topic', topicData);
|
||||
io.sockets.in('users/' + uid).emit('event:new_post', {posts:postData});
|
||||
});
|
||||
|
||||
callback(null, postData);
|
||||
|
||||
Reference in New Issue
Block a user