# HG changeset patch # User Kim Alvefur # Date 1562428026 -7200 # Node ID 6ffed67356e9d5659b0c524f6861c858eeeffd7f # Parent 5c71693c83458db71ffbff3c631c7368c12c1960 mod_pubsub: Expose pubsub#access_model and pubsub#publish_model (fixes #1387) diff -r 5c71693c8345 -r 6ffed67356e9 plugins/mod_pubsub/pubsub.lib.lua --- 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