aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-10 00:52:46 +0200
committerKim Alvefur <zash@zash.se>2018-07-10 00:52:46 +0200
commit804606ae7567d7e094180c987112897466f053b4 (patch)
tree2830754d03478672e5980c146bd359fbaceb1865 /plugins
parent76ea0c210764f4c26c76735647b8b486816f4a03 (diff)
downloadprosody-804606ae7567d7e094180c987112897466f053b4.tar.gz
prosody-804606ae7567d7e094180c987112897466f053b4.zip
mod_pubsub: Update max_items on resize (fixes #1082)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua1
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;
});