mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-04 21:15:55 +01:00
closes #4299
This commit is contained in:
@@ -147,7 +147,10 @@ module.exports = function(Messaging) {
|
||||
if (!newName) {
|
||||
return callback(new Error('[[error:invalid-name]]'));
|
||||
}
|
||||
|
||||
newName = newName.trim();
|
||||
if (newName.length > 75) {
|
||||
return callback(new Error('[[error:chat-room-name-too-long]]'));
|
||||
}
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
Messaging.isRoomOwner(uid, roomId, next);
|
||||
|
||||
Reference in New Issue
Block a user