also passing in uid in topic delete and restore hooks

This commit is contained in:
Julian Lam
2015-03-19 11:34:51 -04:00
parent a1b6019efe
commit 8e38840768

View File

@@ -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);
}