This commit is contained in:
barisusakli
2015-01-08 13:47:15 -05:00
parent 52cf224e5a
commit a77a761433
20 changed files with 176 additions and 32 deletions

View File

@@ -171,8 +171,11 @@ module.exports = function(Posts) {
topics.updateTeaser(postData.tid, next);
},
function(next) {
user.incrementUserPostCountBy(postData.uid, -1, next);
db.sortedSetIncrBy('cid:' + topicData.cid + ':tids:posts', -1, postData.tid, next);
},
function(next) {
user.incrementUserPostCountBy(postData.uid, -1, next);
}
], callback);
});
});