Kim Alvefur <zash@zash.se> [Thu, 29 Jul 2021 17:37:27 +0200] rev 11736
mod_pubsub: Update callbacks on reload to more completely refresh config
This would also release any resources held via references from these
callbacks.
I'm not sure why we don't just re-new() the whole thing.
Related to #1382
Kim Alvefur <zash@zash.se> [Thu, 29 Jul 2021 14:11:29 +0200] rev 11735
migrator: Silence assert in core.moduleapi
The assert triggers because we're not loading the stanza route, because
we are unlikely to need it during migration.
Kim Alvefur <zash@zash.se> [Thu, 29 Jul 2021 14:10:56 +0200] rev 11734
migrator: Use parsed command line flags already parsed by util.startup
Kim Alvefur <zash@zash.se> [Thu, 29 Jul 2021 14:06:14 +0200] rev 11733
migrator: Trick net.server into thinking the config is loaded
Fixes "Loading outside Prosody or Prosody not yet initialized"
Kim Alvefur <zash@zash.se> [Thu, 29 Jul 2021 13:47:26 +0200] rev 11732
migrator: Customise startup sequence to fix #1673 (Thanks acidsys)
Diverge from util.startup.prosodyctl() in order to skip unneeded
behavior, such as loading the *Prosody* config file, which we do not
need here, based on the `--config` flag which should point at the
migrator config file instead.
Notably removed:
* read_config() since this loads the Prosody config
* check_unwriteable() which checks logfiles specified in the Prosody config, so not relevant
* make_dummy_hosts() but the migrator sets up its own hosts during migration
Kim Alvefur <zash@zash.se> [Tue, 27 Jul 2021 00:13:18 +0200] rev 11731
Fix various spelling errors (thanks codespell)
Also special thanks to timeless, for wordlessly reminding me to check
for typos.
Kim Alvefur <zash@zash.se> [Sun, 25 Jul 2021 18:58:25 +0200] rev 11730
mod_pubsub: Update configuration on reload (fixes #1382)
Because of the way the previous pubsub service is carried access module
reloads, it would retain the configuration options with their previous
values from when the service was first created.
Kim Alvefur <zash@zash.se> [Sun, 25 Jul 2021 16:33:19 +0200] rev 11729
mod_pubsub: Silence warning about 'service' as argument [luacheck]
Maybe the 'service' in the outer scope should be moved down to minimize
overlap with other functions that receive the same service as argument?
Kim Alvefur <zash@zash.se> [Sun, 25 Jul 2021 16:31:15 +0200] rev 11728
mod_pep: Remove now unused util.cache import
Kim Alvefur <zash@zash.se> [Thu, 22 Jul 2021 19:53:21 +0200] rev 11727
util.pubsub: Signal that 'persistent-items' is unsupported when disabled
XEP-0060 says that this the way to indicate that 'persistent-items' is
unsupported, but doesn't explicitly say if it being disabled in the node
configuration also counts as unsupported.