var meta = module.parent.require('./meta');. Then, meta.config may have the configuration (might need to double-check that). var nconf = module.parent.require('nconf'); will allow you to hook into the configuration utility we use: nconf.get('url') returns the full url.
Unfortunately not -- our hooks are designed to keep the information passed in to a minimum.
The posts.parse hook is called whenever a piece of content needs to be "parsed like a post". It is not strictly a hook that is called whenever a topic is loaded. Perhaps you can look into filter:post.getPosts?
TypeError: invalid data
at WriteStream.Socket.write (net.js:617:11)
at handleCallback (/opt/nodebb/node_modules/mongodb/lib/utils.js:95:56)
at _callback (/opt/nodebb/node_modules/mongodb/lib/db.js:1469:5)
at finish (/opt/nodebb/node_modules/mongodb-core/lib/auth/scram.js:160:16)
I haven't tested but I'm pretty sure, given the experiences of others here, that the actual cause of my NodeBB breakage was dbsearch 0.0.16, so while it's awkward to be told there are all of these upgrades available, I don't think the problem was nbbpm, just a bad plugin.