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 | 84a825533fefa3df91d2f0d61870375862d4ea1e (patch) | |
tree | de56a4bf7b2c9da5d1c6c20c0975bf8259886a8f /util | |
parent | df1abfdd10b291f3d170b2be1a8ce6ffd3b2ccc0 (diff) | |
download | prosody-84a825533fefa3df91d2f0d61870375862d4ea1e.tar.gz prosody-84a825533fefa3df91d2f0d61870375862d4ea1e.zip |
Pubsub: Add tests for :get_last_item() and fix for non-persistent nodes
Diffstat (limited to 'util')
-rw-r--r-- | util/pubsub.lua | 2 |
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) |