action:topic.save, action:topic.restore, action:topic.edit changes
-
If you have any plugins that use
action:topic.save
,action:topic.restore
oraction: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('action:topic.save', 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 }
Copyright © 2024 NodeBB | Contributors