mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
Bug fix - File upload broken due to api changes in 0.6.x.
This commit is contained in:
@@ -57,7 +57,7 @@ function uploadPost(req, res, next) {
|
||||
if(file.type.match(/image./)) {
|
||||
uploadImage(req.user.uid, file, next);
|
||||
} else {
|
||||
uploadFile(file, next);
|
||||
uploadFile(req.user, file, next);
|
||||
}
|
||||
}, next);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user