# HG changeset patch # User Kim Alvefur # Date 1627573047 -7200 # Node ID 5735f931f5c434a217ebd9e7a085f857b1d6a4ee # Parent 076ceb405b944b4376508632b5104986265c1f6f 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 diff -r 076ceb405b94 -r 5735f931f5c4 plugins/mod_pubsub/mod_pubsub.lua --- 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