mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -71,7 +71,7 @@ SocketModules.chats.send = async function (socket, data) {
|
||||
if (!canChat) {
|
||||
throw new Error('[[error:no-privileges]]');
|
||||
}
|
||||
const results = await plugins.fireHook('filter:messaging.send', {
|
||||
const results = await plugins.hooks.fire('filter:messaging.send', {
|
||||
data: data,
|
||||
uid: socket.uid,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user