Okay, so I'm experiencing something weird here.
First thing first, my repo: https://github.com/ducntq/nodebb-theme-devmonkee
I got 2 hooks in my plugin.json:
"hook": "filter:privileges.topics.get", "method": "onGetTopicPrivSettings",
"hook": "static:api.routes", "method": "addRoutes"
These hooks are served by
The problem is:
- If I register
static:api.routes, the hook
filter:privileges.topics.get will not register.
- If I don't register
static:api.routes (aka remove from
filter:privileges.topics.get will be registered.
Can someone please tell me what's going on? Why can't I register both