Mercurial > prosody-modules
changeset 5919:99ecfe44910b
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.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 07 Jun 2024 15:53:30 +0100 |
parents | d4a8644a1cc5 |
children | 254a21a104aa |
files | mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)