fixes realtime update of home

v1.18.x
barisusakli
parent 4e10ee473c
commit 04e0c58b84

@ -204,11 +204,18 @@ module.exports = function(Topics) {
function(next) { function(next) {
Topics.markAsRead(tid, uid, next); Topics.markAsRead(tid, uid, next);
}, },
function(next) { function(result, next) {
Topics.pushUnreadCount(); Topics.pushUnreadCount();
posts.addUserInfoToPost(postData, next); posts.addUserInfoToPost(postData, next);
}, },
function(postData,next) { function(postData, next) {
Topics.getTopicFields(tid, ['tid', 'title', 'slug'], next);
},
function(topicData, next) {
postData.topic = topicData;
next();
},
function(next) {
posts.getPidIndex(postData.pid, next); posts.getPidIndex(postData.pid, next);
}, },
function(index, next) { function(index, next) {

Loading…
Cancel
Save