mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
cover photo for groups, #2588
This commit is contained in:
@@ -72,6 +72,10 @@ uploadsController.uploadThumb = function(req, res, next) {
|
||||
}, next);
|
||||
};
|
||||
|
||||
uploadsController.uploadGroupCover = function(data, next) {
|
||||
uploadImage(0/*req.user.uid*/, data, next);
|
||||
};
|
||||
|
||||
function uploadImage(uid, image, callback) {
|
||||
if (plugins.hasListeners('filter:uploadImage')) {
|
||||
return plugins.fireHook('filter:uploadImage', {image: image, uid: uid}, callback);
|
||||
|
||||
Reference in New Issue
Block a user