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
commitbfd1f93fbf82b038852ee1a21acac1e125a557d4 (patch)
tree2d165ff8fab8a0bc6bfc9be07e48eb457653ac9b /plugins/mod_pubsub
parent5d5432daf78f1fabb5ad9f54a1e096f092c8d81e (diff)
downloadprosody-bfd1f93fbf82b038852ee1a21acac1e125a557d4.tar.gz
prosody-bfd1f93fbf82b038852ee1a21acac1e125a557d4.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)