How to work with the postData-Object?
Solved
NodeBB Development
-
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!
Copyright © 2024 NodeBB | Contributors