diff options
author | Kim Alvefur <zash@zash.se> | 2017-10-08 01:23:43 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-10-08 01:23:43 +0200 |
commit | 96abbc6f62b29638b60b55d47f185a0b6ab23230 (patch) | |
tree | d96a14ca00bdf1bf8582f97296b7204b95969bc8 /plugins/mod_pubsub | |
parent | cc8c5d2ffe70cf3825121173fcc8ed15a6cbcea6 (diff) | |
download | prosody-96abbc6f62b29638b60b55d47f185a0b6ab23230.tar.gz prosody-96abbc6f62b29638b60b55d47f185a0b6ab23230.zip |
mod_pubsub: Remove workaround for SQL issue (fixed in becb593ed86d)
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 57055462..e33fe836 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -356,11 +356,7 @@ local function simple_itemstore(archive, config, user, node, expose_publisher) module:log("error", "Unable to get item: %s", err); return nil, err; end - -- Workaround for buggy SQL drivers which require iterating until we get a nil. - local id, payload, when, publisher; - for a, b, c, d in data do - id, payload, when, publisher = a, b, c, d; - end + local id, payload, when, publisher = data(); module:log("debug", "Get item %s (published at %s by %s) from store %s", id, when, publisher, store); if id == nil then return nil; |