Comparison

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
comparison
equal deleted inserted replaced
9005:7203a1b65d1b 9006:935e5ca43792
651 end 651 end
652 function get_set:clear() -- luacheck: ignore 212/self 652 function get_set:clear() -- luacheck: ignore 212/self
653 return archive:delete(user); 653 return archive:delete(user);
654 end 654 end
655 function get_set:resize(size) -- luacheck: ignore 212/self 655 function get_set:resize(size) -- luacheck: ignore 212/self
656 max_items = size;
656 return archive:delete(user, { 657 return archive:delete(user, {
657 truncate = size; 658 truncate = size;
658 }); 659 });
659 end 660 end
660 function get_set:tail() 661 function get_set:tail()