mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-08 16:42:48 +01:00
Cover photo removal for groups, #3832
This commit is contained in:
@@ -181,6 +181,10 @@ module.exports = function(Groups) {
|
||||
});
|
||||
};
|
||||
|
||||
Groups.removeCover = function(data, callback) {
|
||||
db.deleteObjectField('group:' + data.groupName, 'cover:url', callback);
|
||||
};
|
||||
|
||||
function updatePrivacy(groupName, newValue, callback) {
|
||||
if (!newValue) {
|
||||
return callback();
|
||||
|
||||
Reference in New Issue
Block a user