diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-08-18 15:10:41 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-08-18 15:10:41 +0100 |
commit | 23cfd1b4d0babdc59f13c0047e0bcbd3ebac5ade (patch) | |
tree | de56a4bf7b2c9da5d1c6c20c0975bf8259886a8f /plugins | |
parent | 61efe5330e3a1f8111973dbbb055d1d3275adc15 (diff) | |
download | prosody-23cfd1b4d0babdc59f13c0047e0bcbd3ebac5ade.tar.gz prosody-23cfd1b4d0babdc59f13c0047e0bcbd3ebac5ade.zip |
Pubsub: Add tests for :get_last_item() and fix for non-persistent nodes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index af4876e8..d1231183 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -872,8 +872,8 @@ local function archive_itemstore(archive, config, user, node) truncate = size; }); end - function get_set:tail() - -- This should conveniently return the last item + function get_set:head() + -- This should conveniently return the most recent item local item = self:get(nil); if item then return item.attr.id, item; |