mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -109,7 +109,7 @@ exports.postCommand = async function (caller, command, eventName, notification,
|
||||
filter:post.bookmark
|
||||
filter:post.unbookmark
|
||||
*/
|
||||
const filteredData = await plugins.fireHook('filter:post.' + command, {
|
||||
const filteredData = await plugins.hooks.fire('filter:post.' + command, {
|
||||
data: data,
|
||||
uid: caller.uid,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user