Software /
code /
prosody
Changeset
10062:6ffed67356e9
mod_pubsub: Expose pubsub#access_model and pubsub#publish_model (fixes #1387)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 06 Jul 2019 17:47:06 +0200 |
parents | 10061:5c71693c8345 |
children | 10063:13ccc2f05007 |
files | plugins/mod_pubsub/pubsub.lib.lua |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Mon Jul 08 02:44:32 2019 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Sat Jul 06 17:47:06 2019 +0200 @@ -185,6 +185,14 @@ 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 @@ ["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