Software /
code /
prosody
Diff
plugins/mod_pubsub/pubsub.lib.lua @ 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 |
parent | 9817:7aad9eb7f050 |
child | 10090:cdcf26331b9f |
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