# HG changeset patch # User Kim Alvefur # Date 1530034117 -7200 # Node ID 12a9731aef0bc137bd0a9dfdab761b0adfaa9c26 # Parent ae84911c1441c1aaa66669c5ebbd1f7f5a3118b6 mod_pubsub: Add stubs for affiliation handling diff -r ae84911c1441 -r 12a9731aef0b plugins/mod_pubsub/pubsub.lib.lua --- a/plugins/mod_pubsub/pubsub.lib.lua Tue Jun 26 16:27:07 2018 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Tue Jun 26 19:28:37 2018 +0200 @@ -88,6 +88,7 @@ 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 @@ 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);