How can we fetch all the posts using timestamp.
For eg.:- get all the posts which was posted yesterday.
Make a request to https://community.nodebb.org/api/recent/posts/day
This will give me the complete day posts and I'm looking for something like get all the posts from 9:00 AM to 12:00 PM.
Great, the posts works. Thank you!
Thanks PitaJ. Much appreciated. Will check it out.
You can link to a topic with just the number: /topic/1. Everything after that is fine. If your browser copy pastes urls like that there isn't much else that can be done.
@pichalite Wow thanks u for the premium support xDDD
@Mega as @Schamper said, I only discovered this last week, so we use require.parent.parent/etc for everything, but require.main works just as well.
Keep in mind require.main's "scope" is app.js, so you'd have to do require.main.require('./src/groups.js'); if you want access to the groups lib.
require.main will always be app.js for plugins, since plugins are only called by NodeBB.