mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user