# HG changeset patch # User Kim Alvefur # Date 1531176766 -7200 # Node ID 935e5ca437929a9729ae93a14728b4b5b76a0288 # Parent 7203a1b65d1b95cd8f8ee0bc7f38934d1a7dcafb mod_pubsub: Update max_items on resize (fixes #1082) diff -r 7203a1b65d1b -r 935e5ca43792 plugins/mod_pubsub/pubsub.lib.lua --- 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; });