• Hey guys!

    I just startet to experiment with the plugin dev inside of nodebb.

    I used the quickstart plugin to start.

    I addes following hook in libary.js

       "hook": "action:post.save", "method": "testpostsave"

    method testpostsave

    plugin.testpostsave = function (postData) {
    	console.log("POSTTTTEEEEDD" + postData);

    Console Output is:

    POSTTTTEEEEDD [object Object]

    Now... how can I work with the Object?

    Is it the same as via http://example.com/api/*/*/

    Or how do I get to username, tags and URL?

    Thank you in advance! 🙂

  • GNU/Linux Admin

    @pasib when you concatenated the object, it got stringified.

    Try console.log('test', postData); 🙂

Suggested Topics

| | |

© 2014 – 2022 NodeBB, Inc. — Made in Canada.