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
commit830370ad911628088c5cee4b3c803e63ec3b1188 (patch)
tree2830754d03478672e5980c146bd359fbaceb1865 /plugins
parente5affafd0c1cef9d5ca8aefa49c8946300dc54cf (diff)
downloadprosody-830370ad911628088c5cee4b3c803e63ec3b1188.tar.gz
prosody-830370ad911628088c5cee4b3c803e63ec3b1188.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;
});