aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-07 10:52:10 +0200
committerKim Alvefur <zash@zash.se>2018-08-07 10:52:10 +0200
commit85d9a2d09c32d6d8326e63242cf69c976b21d38f (patch)
tree2d910a9fccdcecd7dc95e314ed37ed8a9da300fe /util/pubsub.lua
parent2ce46faa63aea4091dc60b714e77b770a7650a01 (diff)
downloadprosody-85d9a2d09c32d6d8326e63242cf69c976b21d38f.tar.gz
prosody-85d9a2d09c32d6d8326e63242cf69c976b21d38f.zip
util.pubsub: Include node defaults from current service object
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r--util/pubsub.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index b1aad71f..08b77790 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -633,6 +633,9 @@ function service:get_node_config(node, actor)
for k, v in pairs(default_node_config) do
config_table[k] = v;
end
+ for k, v in pairs(self.node_defaults) do
+ config_table[k] = v;
+ end
for k, v in pairs(node_obj.config) do
config_table[k] = v;
end