How can i get the content of a topic?


  • Gamers

    How can i get the content of a topic?

    plugin.getTopic = function(data,callback){ if (!data || !data.postData || !data.postData.content) { winston.log('info', data); winston.log('info', "No data"); return callback(null, data); }

    }

    But i can't get the content of the topic using topic.postData.

    Anyway, Do you know of any good ide that can scan the source code and give nice auto completion of the javascript objects. I am using sublime text.


  • Gamers

    @Nisthar I was not able to get the content of a post by using the hook "filter:topic.get" But i used "filter:parse.post" to do it 😄


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.