aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-18 15:10:41 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-18 15:10:41 +0100
commit23cfd1b4d0babdc59f13c0047e0bcbd3ebac5ade (patch)
treede56a4bf7b2c9da5d1c6c20c0975bf8259886a8f /util/pubsub.lua
parent61efe5330e3a1f8111973dbbb055d1d3275adc15 (diff)
downloadprosody-23cfd1b4d0babdc59f13c0047e0bcbd3ebac5ade.tar.gz
prosody-23cfd1b4d0babdc59f13c0047e0bcbd3ebac5ade.zip
Pubsub: Add tests for :get_last_item() and fix for non-persistent nodes
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index b4b9ada9..3fbf1b45 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -604,7 +604,7 @@ function service:get_last_item(node, actor)
end
-- Returns success, id, item
- return true, self.data[node]:tail();
+ return true, self.data[node]:head();
end
function service:get_nodes(actor)