Software /
code /
prosody
Changeset
11732:5735f931f5c4
mod_pubsub: Update callbacks on reload to more completely refresh config
This would also release any resources held via references from these
callbacks.
I'm not sure why we don't just re-new() the whole thing.
Related to #1382
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 29 Jul 2021 17:37:27 +0200 |
parents | 11731:076ceb405b94 |
children | 11733:27699cc148df |
files | plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Thu Jul 29 14:11:29 2021 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Thu Jul 29 17:37:27 2021 +0200 @@ -186,6 +186,14 @@ service.config.autocreate_on_publish = autocreate_on_publish; service.config.autocreate_on_subscribe = autocreate_on_subscribe; service.config.expose_publisher = expose_publisher; + + service.config.nodestore = node_store; + service.config.itemstore = create_simple_itemstore; + service.config.broadcaster = simple_broadcast; + service.config.itemcheck = is_item_stanza; + service.config.check_node_config = check_node_config; + service.config.get_affiliation = get_affiliation; + module.environment.service = service; add_disco_features_from_service(service); end