mod_pubsub_serverinfo: Explicitly depend on mod_server_info
Otherwise the pubsub node will not be advertised unless the admin explicitly
loads that module, or another module that depends on it.
--- a/mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua Tue Jun 04 09:06:44 2024 +0200
+++ b/mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua Fri Jun 07 15:53:30 2024 +0100
@@ -23,6 +23,9 @@
local xmlns_pubsub = "http://jabber.org/protocol/pubsub";
+-- Needed to publish server-info-fields
+module:depends("server_info");
+
function module.load()
discover_node():next(
function(exists)