diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index e1b61096..dc85db28 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -746,6 +746,10 @@ local function archive_itemstore(archive, config, user, node) else data, err = archive:delete(user, { key = key; }); end + -- TODO archive support for maintaining maximum items + archive:delete(user, { + truncate = max_items; + }); if not data then module:log("error", "Unable to set item: %s", err); return nil, err; |