mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
profile cover photos
This commit is contained in:
@@ -93,7 +93,11 @@ uploadsController.uploadThumb = function(req, res, next) {
|
||||
};
|
||||
|
||||
uploadsController.uploadGroupCover = function(data, next) {
|
||||
uploadImage(0/*req.user.uid*/, data, next);
|
||||
uploadImage(0, data, next);
|
||||
};
|
||||
|
||||
uploadsController.uploadUserCover = function(data, next) {
|
||||
uploadImage(data.uid, data, next);
|
||||
};
|
||||
|
||||
function uploadImage(uid, image, callback) {
|
||||
|
||||
Reference in New Issue
Block a user