From 7b5d5987aa5d429b0af88b830158fd3104ee551e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 26 Jun 2018 19:28:37 +0200 Subject: mod_pubsub: Add stubs for affiliation handling --- plugins/mod_pubsub/pubsub.lib.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/mod_pubsub/pubsub.lib.lua') diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 1ffe45d3..c9ebfdb4 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -88,6 +88,7 @@ local service_method_feature_map = { purge = { "purge-nodes" }; retract = { "delete-items", "retract-items" }; set_node_config = { "config-node" }; + -- TODO -- set_affiliation = { "modify-affiliations" }; }; local service_config_feature_map = { autocreate_on_publish = { "auto-create" }; @@ -453,6 +454,14 @@ function handlers.owner_get_default(origin, stanza, default, service) -- luachec return true; end +--[[ TODO +function handlers.owner_get_affiliations(origin, stanza, affiliations, service) +end + +function handlers.owner_set_affiliations(origin, stanza, affiliations, service) +end +--]] + local function create_encapsulating_item(id, payload) local item = st.stanza("item", { id = id, xmlns = xmlns_pubsub }); item:add_child(payload); -- cgit v1.2.3