Software /
code /
prosody-modules
Changeset
3175:44c5d7310c33
mod_pubsub_stats: Pass configuration to disable persistence and limit number of items
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 08 Jul 2018 01:17:23 +0200 |
parents | 3174:f02c0f5e44ac |
children | 3176:d34f5d969940 |
files | mod_pubsub_stats/mod_pubsub_stats.lua |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_pubsub_stats/mod_pubsub_stats.lua Thu Jul 05 02:03:29 2018 +0200 +++ b/mod_pubsub_stats/mod_pubsub_stats.lua Sun Jul 08 01:17:23 2018 +0200 @@ -26,7 +26,10 @@ end function module.load() - pubsub.service:create(node, true); + pubsub.service:create(node, true, { + persistent_items = false; + max_items = 1; + }); pubsub.service:set_affiliation(node, true, actor, "publisher"); end