aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-16 15:05:01 +0200
committerKim Alvefur <zash@zash.se>2018-08-16 15:05:01 +0200
commit2bbecd6d17010b16e84b55773c206a4222a8e3e1 (patch)
treee3008bd7b36f6ac1178bf150aedac4bf55c6b39b /plugins/mod_pubsub
parent997025dc398e4b740966297dd812f5ca185dea67 (diff)
downloadprosody-2bbecd6d17010b16e84b55773c206a4222a8e3e1.tar.gz
prosody-2bbecd6d17010b16e84b55773c206a4222a8e3e1.zip
mod_pubsub: Specify defaults for notification settings
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 99b6ba63..132a4972 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -101,6 +101,7 @@ local node_config_form = dataform {
type = "boolean";
label = "Whether to deliver payloads with event notifications";
name = "pubsub#deliver_payloads";
+ value = true;
};
{
type = "list-single";
@@ -115,11 +116,13 @@ local node_config_form = dataform {
type = "boolean";
label = "Whether to notify subscribers when the node is deleted";
name = "pubsub#notify_delete";
+ value = true;
};
{
type = "boolean";
label = "Whether to notify subscribers when items are removed from the node";
name = "pubsub#notify_retract";
+ value = true;
};
};