@julian Thanks for getting back to me quickly. Other priorities pulled me away from this, but after looking at your response, it seems like what I'm actually after are "unread" counts, not just notifications. The simple GET solution returned notifications, but not every "unread". Our app is using the session sharing plugin, and we are associating NodeBB accounts with our app accounts. Would I be able to leverage some of the session sharing functionality to get an unread count for users on our app based on their NodeBB account? Thanks
NodeBB Plugin best practices
-
I'm thinking it would be good if we establish some best practices for NodeBB plugin development.
Feel free to contribute by replying and I'll add it to the list.
- Database keys should start with
plugin:[your-plugin-name]:
ex: if the plugin isnodebb-plugin-mentions
then the database keys would start withplugin:mentions:
- Use sockets instead of ajax
- Use CSS transitions instead of jQuery animations, trigger them by toggling classes on the elements
- Use Bootstrap elements as much as possible or not at all
- your suggestion here
- Database keys should start with