Diff

plugins/mod_pubsub/mod_pubsub.lua @ 12021:376522fb3f52

mod_pubsub: Allow specifying the JID of the pubsub service This allows overriding it in cases where it is not equal to module.host, like say, in mod_pep
author Kim Alvefur <zash@zash.se>
date Tue, 07 Dec 2021 13:03:55 +0100
parent 11856:14a679588b7b
child 12153:26af75c20163
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua	Mon Dec 06 22:38:27 2021 +0100
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Tue Dec 07 13:03:55 2021 +0100
@@ -231,6 +231,7 @@
 		check_node_config = check_node_config;
 		get_affiliation = get_affiliation;
 
+		jid = module.host;
 		normalize_jid = jid_bare;
 	}));
 end