Skip to content

Node.js based forum software built for the modern web

update deleted propery before calling hook

barisusaklieaa442db8c17
diff --git a/src/threadTools.js b/src/threadTools.js
index aa83f99eb7..1a8016a2e2 100644
--- a/src/threadTools.js
+++ b/src/threadTools.js
@@ -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);