v1.18.x
Julian Lam 8 years ago
parent 597e375463
commit d1721303ab

@ -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);
}

@ -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) {

Loading…
Cancel
Save