mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
update deleted propery before calling hook
This commit is contained in:
@@ -35,7 +35,7 @@ var async = require('async'),
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
topicData.deleted = isDelete ? 1 : 0;
|
||||
ThreadTools[isDelete ? 'lock' : 'unlock'](tid, uid);
|
||||
if (isDelete) {
|
||||
plugins.fireHook('action:topic.delete', tid);
|
||||
|
||||
Reference in New Issue
Block a user