aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-26 19:28:37 +0200
committerKim Alvefur <zash@zash.se>2018-06-26 19:28:37 +0200
commit2a848b980a182a5155c6e6e6f19ca68cc48cfaf3 (patch)
tree5870077ce6fdc051039b81ce79a8b022f77aa71a
parentea669cf6dc6cb0c52cfaa200ca55419a121b22a4 (diff)
downloadprosody-2a848b980a182a5155c6e6e6f19ca68cc48cfaf3.tar.gz
prosody-2a848b980a182a5155c6e6e6f19ca68cc48cfaf3.zip
mod_pubsub: Add stubs for affiliation handling
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua9
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);