Mercurial > prosody-hg
diff util/pubsub.lua @ 9125:da7a2db01d6a
Merge with jonasw
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 06 Aug 2018 08:21:55 +0100 |
| parents | a19fdc6e4f09 |
| children | 7721794e9e93 |
line wrap: on
line diff
--- a/util/pubsub.lua Sun Aug 05 11:44:49 2018 +0200 +++ b/util/pubsub.lua Mon Aug 06 08:21:55 2018 +0100 @@ -565,6 +565,8 @@ return false, "item-not-found"; end + setmetatable(new_config, {__index=self.node_defaults}) + if self.config.check_node_config then local ok = self.config.check_node_config(node, actor, new_config); if not ok then @@ -573,7 +575,7 @@ end local old_config = node_obj.config; - node_obj.config = setmetatable(new_config, {__index=self.node_defaults}); + node_obj.config = new_config; if self.config.nodestore then local ok, err = save_node_to_store(self, node_obj);
