diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-08-06 11:23:42 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-08-06 11:23:42 +0100 |
commit | 7ea43e66072912ef6cbec097985d715ef462c900 (patch) | |
tree | a200cffa87627b599931b5fb228a148852c10e86 /plugins | |
parent | 711d3e4bf3c93eafe36070a757c6465d608f7efa (diff) | |
download | prosody-7ea43e66072912ef6cbec097985d715ef462c900.tar.gz prosody-7ea43e66072912ef6cbec097985d715ef462c900.zip |
pubsub.lib: Add support for pubsub#publish_model
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 566450ee..a7b469d5 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -86,6 +86,16 @@ local node_config_form = dataform { }; { type = "list-single"; + name = "pubsub#publish_model"; + label = "Specify the publisher model"; + options = { + { value = "publishers" }; + { value = "subscribers" }; + { value = "open" }; + }; + }; + { + type = "list-single"; name = "pubsub#notification_type"; label = "Specify the delivery style for notifications"; options = { @@ -131,6 +141,7 @@ local config_field_map = { persist_items = "pubsub#persist_items"; notification_type = "pubsub#notification_type"; access_model = "pubsub#access_model"; + publish_model = "pubsub#publish_model"; }; local reverse_config_field_map = {}; for k, v in pairs(config_field_map) do reverse_config_field_map[v] = k; end @@ -144,6 +155,7 @@ local function config_to_xep0060(node_config) ["pubsub#persist_items"] = node_config["persist_items"]; ["pubsub#notification_type"] = node_config["notification_type"]; ["pubsub#access_model"] = node_config["access_model"]; + ["pubsub#publish_model"] = node_config["publish_model"]; } end |