Hmm, I'm not sure why it wouldn't work then, that's pretty much exactly my code.
I'd like to allow for configuring notifications on category level. Is the nodebb-plugin-category-notifications the only option to achieve this?
Installing + activation works on my otherwise flawless Nodebb 1.10.1 installation. However hitting Dashboard --> Plugins --> Category Notifications just endlessly shows a spinner. I've filed an issue at https://github.com/NodeBB/nodebb-plugin-category-notifications/issues/9 but received yet no reply.
For clarification: Users should receive notifications whenever a new post / reply appears within a given category. Happy to see an other way achieving this.