Software /
code /
prosody
Changeset
8932:12a9731aef0b
mod_pubsub: Add stubs for affiliation handling
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 26 Jun 2018 19:28:37 +0200 |
parents | 8931:ae84911c1441 |
children | 8933:6d3ecf9e8277 |
files | plugins/mod_pubsub/pubsub.lib.lua |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);