Make members of a group watch a category by default

I revised the “Watch Category” plugin for my own site, incorporating code from both Jared Needell and Thomas Purchas.

You can find it here:
http://github.com/amical/discourse-watch-category

This version allows you to automatically watch a category or sub-category for all the users in the system or all the users in a particular group.

Features that are still missing:

  • Support for tags
  • Admin UI. This looks tricky as I don’t see any UI that supports nested arrays, which you’d probably need.
  • Users don’t automatically stop watching categories if they’re removed from a group. Should this be an (optional) feature? What happens if a user is removed from a group that prevents them from having access to a category that they’re still watching?

I don’t know Ruby and just cobbled together this for my purposes. I hope that more skilful people than myself can work on the above.

14 Likes