@julian And where is /auth/yourplugin/callback handled? Because in the case of nodebb-plugin-sso-oauth it takes to the homepage of the forum. But i want to change that behaviour and i don't know where or how.
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?