No it goes in library.js since it's a server side hook. And you need to add the corresponding entry in plugin.json.
// library.js myPlugin.filterMiddlewareRender = async (hookData) => { hookData.templateData.user = await user.getUserData(hookData.req.uid); return hookData; }; //plugin.json "hooks": { "filter:middleware.render": "filterMiddlewareRender" ... }Widgets Drag & Drop
-
Hello,
I've a little problem with the drag & drop by the widgets.
Here is a Video: https://youtu.be/A-RNjo4WM7M -
@Zarosch What's your NodeBB version?
What's the git hash for your NodeBB?
-
@pichalite
The version is NodeBB v1.1.2 and the git hash is c8f270ec679e4353f0fcf65dc80a32b7c8fa37f7. -
@Zarosch You are using the master branch from a week ago instead of the stable release. Anyway the issue is already fixed on master branch. Pull latest and you should be good to go.
-
Thank you very much