diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-26 19:28:37 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-26 19:28:37 +0200 |
commit | 7b5d5987aa5d429b0af88b830158fd3104ee551e (patch) | |
tree | 5870077ce6fdc051039b81ce79a8b022f77aa71a /plugins/mod_pubsub/pubsub.lib.lua | |
parent | 550549763f2af6869ffcc9d967652b440d60d6b6 (diff) | |
download | prosody-7b5d5987aa5d429b0af88b830158fd3104ee551e.tar.gz prosody-7b5d5987aa5d429b0af88b830158fd3104ee551e.zip |
mod_pubsub: Add stubs for affiliation handling
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 9 |
1 files changed, 9 insertions, 0 deletions
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); |