aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-12 01:37:35 +0200
committerKim Alvefur <zash@zash.se>2017-10-12 01:37:35 +0200
commit08d26443e55ea9eb6b22d6fbba46973dc71b8822 (patch)
tree2d165ff8fab8a0bc6bfc9be07e48eb457653ac9b /plugins/mod_pubsub
parentee39ade3051eadc332effc211ba56277acab2b66 (diff)
downloadprosody-08d26443e55ea9eb6b22d6fbba46973dc71b8822.tar.gz
prosody-08d26443e55ea9eb6b22d6fbba46973dc71b8822.zip
mod_pep_plus: Make node persistence configurable via pubsub#persist_items
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 56b0cb42..77bc958e 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -45,6 +45,11 @@ local node_config_form = dataform {
name = "pubsub#max_items";
label = "Max # of items to persist";
};
+ {
+ type = "boolean";
+ name = "pubsub#persist_items";
+ label = "Persist items to storage";
+ };
};
function handlers.get_items(origin, stanza, items, service)