mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -19,7 +19,7 @@ blocksController.getBlocks = async function (req, res, next) {
|
||||
return next();
|
||||
}
|
||||
const uids = await user.blocks.list(userData.uid);
|
||||
const data = await plugins.fireHook('filter:user.getBlocks', {
|
||||
const data = await plugins.hooks.fire('filter:user.getBlocks', {
|
||||
uids: uids,
|
||||
uid: userData.uid,
|
||||
start: start,
|
||||
|
||||
Reference in New Issue
Block a user