, action:topic.restore, action:topic.edit changes

NodeBB Development
  • If you have any plugins that use, action:topic.restore or action:topic.edit please read below on the changes coming in 0.6.0. If you have any questions about how to update to the new hooks please feel free to ask.

    The parameter passed to all three hooks has been changed from a topic id to a topicData object.

    plugins.fireHook('', topicData);
    plugins.fireHook('action:topic.restore', topicData);
    plugins.fireHook('action:topic.edit', topicData);

    topicData object contains at least the following data.

       tid: 3,
       title: 'test topic',
       mainPid: 5

Suggested Topics

| | | |