Hooks help



  • Hey guys,

    We use the 0.9.x branch I have this warning on startup:

    [plugins/nodebb-plugin-ns-awards] Hook filter:user.delete is deprecated, please use an alternative

    When the plugin is active and I delete a user, the boards crash on a callback error.

    I've investigated this plugin and the only mention of this hook is:

    {
    "hook": "filter:user.delete",
    "method": "hooks.filters.userDelete"
    }

    I've looked at the wiki containing all the hooks. But I'm not really sure what "alternative" to replace these values with. Do I use static?

    Regards,
    Whip


  • Plugin & Theme Dev

    @Whiplash174 don't think it's a problem with the hook. The warning on the startup is just an indication that the hook will be removed in the future but it works now.

    Looks like the problem is with the plugin when it tries to delete the awards for the deleted user. Create an issue on the plugin github page.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.