Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Tags
    3. action
    Log in to post
    • Nicolas

      Client actions for posts
      Plugin Development • action client javascript plugin • • Nicolas

      5
      0
      Votes
      5
      Posts
      2392
      Views

      rbeer

      @pitaj
      Boy, that was quick! Thanks 🙂

    • baris

      action:topic.save, action:topic.restore, action:topic.edit changes
      NodeBB Development • 0.6.0 action • • <baris>

      1
      0
      Votes
      1
      Posts
      1251
      Views

      baris

      If you have any plugins that use action:topic.save, 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('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 }