aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/pubsub.lib.lua
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
commit88345b017257091ca0ae216599d2b8a43ea9681c (patch)
treedc3019868c9977deceb002b868ea3627ba2fa1ec /plugins/mod_pubsub/pubsub.lib.lua
parentf1406ebe53dd38003cd1fd3121946ae4924de03c (diff)
downloadprosody-88345b017257091ca0ae216599d2b8a43ea9681c.tar.gz
prosody-88345b017257091ca0ae216599d2b8a43ea9681c.zip
mod_pubsub: Expose pubsub#access_model and pubsub#publish_model (fixes #1387)
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-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