Software / code / prosody
Changeset
9006:935e5ca43792
mod_pubsub: Update max_items on resize (fixes #1082)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 10 Jul 2018 00:52:46 +0200 |
| parents | 9005:7203a1b65d1b |
| children | 9007:695904638cfa |
| files | plugins/mod_pubsub/pubsub.lib.lua |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Tue Jul 10 00:51:55 2018 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Tue Jul 10 00:52:46 2018 +0200 @@ -653,6 +653,7 @@ return archive:delete(user); end function get_set:resize(size) -- luacheck: ignore 212/self + max_items = size; return archive:delete(user, { truncate = size; });