aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-06 11:23:42 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-06 11:23:42 +0100
commit3d23876d124d9c637a127f4a43d9b7ea477f9ba5 (patch)
treea200cffa87627b599931b5fb228a148852c10e86 /plugins
parent33a2c854019f717a0d88c129983ce0f67f10ce4b (diff)
downloadprosody-3d23876d124d9c637a127f4a43d9b7ea477f9ba5.tar.gz
prosody-3d23876d124d9c637a127f4a43d9b7ea477f9ba5.zip
pubsub.lib: Add support for pubsub#publish_model
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua12
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