aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-04 03:33:21 +0200
committerKim Alvefur <zash@zash.se>2018-08-04 03:33:21 +0200
commitd28f6ca5efb3382629feb0bb27cec6a541f1c6b5 (patch)
treea8390811dc642ab0f92c870ff92dd8e3a364e3c8 /plugins
parent4310c5f921348d4a34f826d17c7f74de7c4b79b6 (diff)
downloadprosody-d28f6ca5efb3382629feb0bb27cec6a541f1c6b5.tar.gz
prosody-d28f6ca5efb3382629feb0bb27cec6a541f1c6b5.zip
mod_pubsub: Advertise default access model in disco
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 67d085c0..9888a0fd 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -187,6 +187,10 @@ function _M.get_feature_set(service)
end
end
+ if service.node_defaults.access_model then
+ supported_features:add("access-"..service.node_defaults.access_model);
+ end
+
return supported_features;
end