From 9ced42c9fb1f8428fca87bfdf02472d72421e881 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 25 Jul 2021 18:58:25 +0200 Subject: 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. --- plugins/mod_pubsub/mod_pubsub.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/mod_pubsub') diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 2557c2a7..bcba88f2 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -183,6 +183,9 @@ end function set_service(new_service) service = new_service; + service.config.autocreate_on_publish = autocreate_on_publish; + service.config.autocreate_on_subscribe = autocreate_on_subscribe; + service.config.expose_publisher = expose_publisher; module.environment.service = service; add_disco_features_from_service(service); end -- cgit v1.2.3