aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-06 17:47:06 +0200
committerKim Alvefur <zash@zash.se>2019-07-06 17:47:06 +0200
commitad90995e3f3cee91596566be5d99c625cb3a62a4 (patch)
treedc3019868c9977deceb002b868ea3627ba2fa1ec /plugins
parentf2b49140d8f9309bb3613effbef0739216ba7a9b (diff)
downloadprosody-ad90995e3f3cee91596566be5d99c625cb3a62a4.tar.gz
prosody-ad90995e3f3cee91596566be5d99c625cb3a62a4.zip
mod_pubsub: Expose pubsub#access_model and pubsub#publish_model (fixes #1387)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 50ef7ddf..83c81bb7 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -185,6 +185,14 @@ local node_metadata_form = dataform {
type = "text-single";
name = "pubsub#type";
};
+ {
+ type = "text-single";
+ name = "pubsub#access_model";
+ };
+ {
+ type = "text-single";
+ name = "pubsub#publish_model";
+ };
};
local service_method_feature_map = {
@@ -258,6 +266,8 @@ function _M.handle_disco_info_node(event, service)
["pubsub#title"] = node_obj.config.title;
["pubsub#description"] = node_obj.config.description;
["pubsub#type"] = node_obj.config.payload_type;
+ ["pubsub#access_model"] = node_obj.config.access_model;
+ ["pubsub#publish_model"] = node_obj.config.publish_model;
}, "result"));
end
end