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