What is the best way to write to the notes field of a flag? I am writing a plugin that when a post/user is flagged it will send the information to a ticketing system and return a ticket id. I want to write that ID to the flag and close the flag.
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