Is there anyway to extend the "topic" api to return both the first post teaser/user AND the last post teaser/user? Currently, its one or the other in settings.
@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.
@trevor You may have had some on your forum too, i mentioned it in the post to show the people that there was other themes as they all seemed to complain about was the theme here.
I am trying to do the same thing. I change the timestamp in mongoDB, but it has no effect on the frontend.
Ps.: I changed the timestamp on topic, post and topics:recent.
Anyone can help me?
I was trying your vanilla importer i reinstalled my nodebb will let you know when i migrate again. i have to move out from redis and setup mongodb since my community is too big and the memory consumption of redis is ridiculous
What features gives this function?
I did not notice any changes.