Skip to content

Node.js based forum software built for the modern web

also passing in uid in topic delete and restore hooks

Julian Lam8e388407682b
diff --git a/src/threadTools.js b/src/threadTools.js
index 96d8198291..e4345ab0ee 100644
--- a/src/threadTools.js
+++ b/src/threadTools.js
@@ -21,7 +21,7 @@ var async = require('async'),
};
function toggleDelete(tid, uid, isDelete, callback) {
- topics.getTopicFields(tid, ['tid', 'cid', 'deleted', 'title', 'mainPid'], function(err, topicData) {
+ topics.getTopicFields(tid, ['tid', 'cid', 'uid', 'deleted', 'title', 'mainPid'], function(err, topicData) {
if (err) {
return callback(err);
}