mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = function (Posts) {
|
||||
const post = await postDiffLoad(pid, since, uid);
|
||||
post.content = String(post.content || '');
|
||||
|
||||
const result = await plugins.fireHook('filter:parse.post', { postData: post });
|
||||
const result = await plugins.hooks.fire('filter:parse.post', { postData: post });
|
||||
result.postData.content = translator.escape(result.postData.content);
|
||||
return result.postData;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user