diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-10 00:52:46 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-10 00:52:46 +0200 |
commit | 804606ae7567d7e094180c987112897466f053b4 (patch) | |
tree | 2830754d03478672e5980c146bd359fbaceb1865 /plugins/mod_pubsub | |
parent | 76ea0c210764f4c26c76735647b8b486816f4a03 (diff) | |
download | prosody-804606ae7567d7e094180c987112897466f053b4.tar.gz prosody-804606ae7567d7e094180c987112897466f053b4.zip |
mod_pubsub: Update max_items on resize (fixes #1082)
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index ebeb6175..0fadd6e7 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -653,6 +653,7 @@ local function archive_itemstore(archive, config, user, node) return archive:delete(user); end function get_set:resize(size) -- luacheck: ignore 212/self + max_items = size; return archive:delete(user, { truncate = size; }); |