aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/pubsub.lib.lua
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
commit9a75fd03cca5c16d1563c9bded852651b30e9436 (patch)
treee3008bd7b36f6ac1178bf150aedac4bf55c6b39b /plugins/mod_pubsub/pubsub.lib.lua
parentc6cac6d61aa48adb35f349669fea58cabec8dc85 (diff)
downloadprosody-9a75fd03cca5c16d1563c9bded852651b30e9436.tar.gz
prosody-9a75fd03cca5c16d1563c9bded852651b30e9436.zip
mod_pubsub: Specify defaults for notification settings
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-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;
};
};