Diff

plugins/mod_pubsub/pubsub.lib.lua @ 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
parent 9005:7203a1b65d1b
child 9032:029e1e18d65c
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;
 		});