Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi, I need to add an entry in the ThreadTools menu. Based on the value of the topic I want to display "Set ..." or "Unset ...". How can I get the topicData using the hook filter:topic.thread_tools.
Hi this is not possible with the current data passed into the hook. We can add the necessary data in 0.7.0 since its a breaking change.
https://github.com/NodeBB/NodeBB/issues/2705
Thanks @baris , for now, I'll find an alternative solution for my plugin.
This is now on master. The data that is passed to the filter includes the topic, the uid of the current user and an empty tools array.
tools