This commit is contained in:
Julian Lam
2016-10-06 14:39:15 -04:00
parent 597e375463
commit d1721303ab
2 changed files with 2 additions and 4 deletions

View File

@@ -34,9 +34,6 @@ module.exports = function(Posts) {
function(next) {
db.sortedSetRemove('cid:' + topicData.cid + ':pids', pid, next);
},
function(next) {
Posts.dismissFlag(pid, next);
},
function(next) {
topics.updateTeaser(postData.tid, next);
}

View File

@@ -133,7 +133,8 @@ module.exports = function(Posts) {
], next);
},
async.apply(db.deleteObjectField, 'post:' + pid, 'flags'),
async.apply(db.delete, 'pid:' + pid + ':flag:uid:reason')
async.apply(db.delete, 'pid:' + pid + ':flag:uid:reason'),
async.apply(db.deleteObjectFields, 'post:' + pid, ['flag:state', 'flag:assignee', 'flag:notes', 'flag:history'])
], next);
},
function(results, next) {