mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: #7629, new filter hook for room rename
This commit is contained in:
@@ -250,6 +250,13 @@ module.exports = function (Messaging) {
|
||||
}
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
plugins.fireHook('filter:chat.renameRoom', {
|
||||
uid: uid,
|
||||
roomId: roomId,
|
||||
newName: newName,
|
||||
}, next);
|
||||
},
|
||||
function (result, next) {
|
||||
Messaging.isRoomOwner(uid, roomId, next);
|
||||
},
|
||||
function (isOwner, next) {
|
||||
|
||||
Reference in New Issue
Block a user