v1.18.x
barisusakli 8 years ago
parent d29361f4c9
commit 1e137636c9

@ -137,15 +137,18 @@ module.exports = function (Topics) {
function (next) {
reduceCounters(tid, next);
}
], next);
}
], function (err) {
if (err) {
return callback(err);
}
plugins.fireHook('action:topic.purge', tid);
db.delete('topic:' + tid, callback);
next(err);
});
},
function (next) {
Topics.getTopicData(tid, next);
},
function (topicData, next) {
plugins.fireHook('action:topic.purge', {topic: topicData, uid: uid});
db.delete('topic:' + tid, next);
}
], callback);
};
function deleteFromFollowersIgnorers(tid, callback) {

Loading…
Cancel
Save