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.
--- a/tools/migration/prosody-migrator.lua Thu Jul 29 14:10:56 2021 +0200
+++ b/tools/migration/prosody-migrator.lua Thu Jul 29 14:11:29 2021 +0200
@@ -54,6 +54,10 @@
prosody.config_loaded = true;
startup.load_libraries();
startup.init_http_client();
+ prosody.core_post_stanza = function ()
+ -- silence assert in core.moduleapi
+ error("Attempt to send stanzas from inside migrator.", 0);
+ end
end
-- Command-line parsing