mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-10 13:51:33 +02:00
moved topic locked check to topic.reply
This commit is contained in:
@@ -37,13 +37,6 @@ var db = require('./database'),
|
||||
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
topics.isLocked(tid, next);
|
||||
},
|
||||
function(locked, next) {
|
||||
if(locked) {
|
||||
return next(new Error('topic-locked'));
|
||||
}
|
||||
|
||||
db.incrObjectField('global', 'nextPid', next);
|
||||
},
|
||||
function(pid, next) {
|
||||
|
||||
Reference in New Issue
Block a user