mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 03:21:18 +01:00
fix tests
This commit is contained in:
@@ -226,7 +226,7 @@ module.exports = function(Topics) {
|
||||
checkContentLength(content, next);
|
||||
},
|
||||
function(next) {
|
||||
posts.create({uid: uid, tid: tid, content: content, toPid: toPid, ip: data.req.ip}, next);
|
||||
posts.create({uid: uid, tid: tid, content: content, toPid: toPid, ip: data.req ? data.req.ip : null}, next);
|
||||
},
|
||||
function(data, next) {
|
||||
postData = data;
|
||||
|
||||
Reference in New Issue
Block a user