diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-25 18:58:25 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-25 18:58:25 +0200 |
commit | 9ced42c9fb1f8428fca87bfdf02472d72421e881 (patch) | |
tree | e503d76d0d430de326b15ea0f98154a5734dcc4b | |
parent | 7711193903f731f3bb842f5b8603ab255e125215 (diff) | |
download | prosody-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.lua | 3 |
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 |