Comparison

plugins/mod_pubsub/mod_pubsub.lua @ 8328:29ef191c7bf9

mod_pubsub: Fix feature advertising of config-node and retrieve-default It confused pubsub.lib handler names with util.pubsub service methods
author Kim Alvefur <zash@zash.se>
date Tue, 17 Oct 2017 03:43:57 +0200
parent 8327:0b561f8bc790
child 8334:036e46d12b78
comparison
equal deleted inserted replaced
8327:0b561f8bc790 8328:29ef191c7bf9
79 publish = { "publish", autocreate_on_publish and "auto-create" }; 79 publish = { "publish", autocreate_on_publish and "auto-create" };
80 delete = { "delete-nodes" }; 80 delete = { "delete-nodes" };
81 get_items = { "retrieve-items" }; 81 get_items = { "retrieve-items" };
82 add_subscription = { "subscribe" }; 82 add_subscription = { "subscribe" };
83 get_subscriptions = { "retrieve-subscriptions" }; 83 get_subscriptions = { "retrieve-subscriptions" };
84 set_configure = { "config-node" }; 84 set_node_config = { "config-node" };
85 get_default = { "retrieve-default" }; 85 node_defaults = { "retrieve-default" };
86 }; 86 };
87 87
88 local function add_disco_features_from_service(service) 88 local function add_disco_features_from_service(service)
89 for method, features in pairs(feature_map) do 89 for method, features in pairs(feature_map) do
90 if service[method] then 90 if service[method] then