mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-08 13:11:30 +02:00
closes #621
This commit is contained in:
14
src/posts.js
14
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();
|
||||
|
||||
Reference in New Issue
Block a user