|
|
@ -37,13 +37,15 @@ var async = require('async'),
|
|
|
|
return callback(new Error('[[error:invalid-uid]]'));
|
|
|
|
return callback(new Error('[[error:invalid-uid]]'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var postData;
|
|
|
|
|
|
|
|
|
|
|
|
async.waterfall([
|
|
|
|
async.waterfall([
|
|
|
|
function(next) {
|
|
|
|
function(next) {
|
|
|
|
db.incrObjectField('global', 'nextPid', next);
|
|
|
|
db.incrObjectField('global', 'nextPid', next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function(pid, next) {
|
|
|
|
function(pid, next) {
|
|
|
|
|
|
|
|
|
|
|
|
var postData = {
|
|
|
|
postData = {
|
|
|
|
'pid': pid,
|
|
|
|
'pid': pid,
|
|
|
|
'uid': uid,
|
|
|
|
'uid': uid,
|
|
|
|
'tid': tid,
|
|
|
|
'tid': tid,
|
|
|
|