aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua4
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;