From 4f97275d24dc53220846780b969ccf5ac045b06f Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sat, 7 Dec 2013 18:45:26 -0500 Subject: [PATCH] closes #621 --- src/posts.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/posts.js b/src/posts.js index a9ab69f9d4..054ae82a52 100644 --- a/src/posts.js +++ b/src/posts.js @@ -134,6 +134,10 @@ var db = require('./database'), callback(new Error('reply-error'), null); } + Posts.getCidByPid(postData.pid, function(err, cid) { + db.delete('cid:' + cid + ':read_by_uid'); + }); + async.parallel([ function(next) { topics.markUnRead(tid, function(err) { @@ -147,16 +151,6 @@ var db = require('./database'), function(next) { topics.pushUnreadCount(null, next); }, - function(next) { - Posts.getCidByPid(postData.pid, function(err, cid) { - if(err) { - return next(err); - } - - db.delete('cid:' + cid + ':read_by_uid'); - next(); - }); - }, function(next) { threadTools.notifyFollowers(tid, uid); next();