closes #2970, closes #3078

This commit is contained in:
barisusakli
2015-04-21 16:26:24 -04:00
parent 2f2e2d60a0
commit 3ffd3a5d3c
3 changed files with 5 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ var async = require('async'),
return callback(err);
}
topicData.deleted = isDelete ? 1 : 0;
ThreadTools[isDelete ? 'lock' : 'unlock'](tid, uid);
if (isDelete) {
plugins.fireHook('action:topic.delete', tid);
} else {
@@ -47,7 +47,6 @@ var async = require('async'),
tid: tid,
cid: topicData.cid,
isDelete: isDelete,
isLocked: isDelete,
uid: uid
};