aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-04 03:38:38 +0200
committerKim Alvefur <zash@zash.se>2018-08-04 03:38:38 +0200
commit36c052a16520fff0b9497759d2f830759f8f791c (patch)
tree5dbc3d2477346530f4ff77876c770b8faec33544 /plugins/mod_pubsub
parentafd936d00cce93e84e9172b2f3577a24d588c897 (diff)
downloadprosody-36c052a16520fff0b9497759d2f830759f8f791c.tar.gz
prosody-36c052a16520fff0b9497759d2f830759f8f791c.zip
mod_pubsub: Add access model to configuration form
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index e37ca55b..67d085c0 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -48,6 +48,7 @@ local function config_to_xep0060(node_config)
["pubsub#max_items"] = tostring(node_config["max_items"]);
["pubsub#persist_items"] = node_config["persist_items"];
["pubsub#notification_type"] = node_config["notification_type"];
+ ["pubsub#access_model"] = node_config["access_model"];
}
end
@@ -58,6 +59,7 @@ local function config_from_xep0060(config)
["max_items"] = tonumber(config["pubsub#max_items"]);
["persist_items"] = config["pubsub#persist_items"];
["notification_type"] = config["pubsub#notification_type"];
+ ["access_model"] = config["pubsub#access_model"];
}
end
@@ -89,6 +91,18 @@ local node_config_form = dataform {
};
{
type = "list-single";
+ name = "pubsub#access_model";
+ label = "Specify the subscriber model";
+ options = {
+ { value = "authorize" },
+ { value = "open" },
+ { value = "presence" },
+ { value = "roster" },
+ { value = "whitelist" },
+ };
+ };
+ {
+ type = "list-single";
name = "pubsub#notification_type";
label = "Specify the delivery style for notifications";
options = {