aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-25 18:58:25 +0200
committerKim Alvefur <zash@zash.se>2021-07-25 18:58:25 +0200
commit9ced42c9fb1f8428fca87bfdf02472d72421e881 (patch)
treee503d76d0d430de326b15ea0f98154a5734dcc4b
parent7711193903f731f3bb842f5b8603ab255e125215 (diff)
downloadprosody-9ced42c9fb1f8428fca87bfdf02472d72421e881.tar.gz
prosody-9ced42c9fb1f8428fca87bfdf02472d72421e881.zip
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.
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua3
1 files changed, 3 insertions, 0 deletions
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