mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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([
|
async.waterfall([
|
||||||
function (next) {
|
function (next) {
|
||||||
|
plugins.fireHook('filter:chat.renameRoom', {
|
||||||
|
uid: uid,
|
||||||
|
roomId: roomId,
|
||||||
|
newName: newName,
|
||||||
|
}, next);
|
||||||
|
},
|
||||||
|
function (result, next) {
|
||||||
Messaging.isRoomOwner(uid, roomId, next);
|
Messaging.isRoomOwner(uid, roomId, next);
|
||||||
},
|
},
|
||||||
function (isOwner, next) {
|
function (isOwner, next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user