Mercurial > prosody-hg
comparison plugins/mod_pubsub/pubsub.lib.lua @ 8374:b52663586243
mod_pubsub: Update node config names (should have been in 2abbb01cd756) (thanks lovetox)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 06 Nov 2017 21:03:30 +0100 |
| parents | 7c1fb8c042dc |
| children | e2037634cdd9 |
comparison
equal
deleted
inserted
replaced
| 8373:af7b41a0ec9e | 8374:b52663586243 |
|---|---|
| 435 local function archive_itemstore(archive, config, user, node) | 435 local function archive_itemstore(archive, config, user, node) |
| 436 module:log("debug", "Creation of itemstore for node %s with config %s", node, config); | 436 module:log("debug", "Creation of itemstore for node %s with config %s", node, config); |
| 437 local get_set = {}; | 437 local get_set = {}; |
| 438 function get_set:items() -- luacheck: ignore 212/self | 438 function get_set:items() -- luacheck: ignore 212/self |
| 439 local data, err = archive:find(user, { | 439 local data, err = archive:find(user, { |
| 440 limit = tonumber(config["pubsub#max_items"]); | 440 limit = tonumber(config["max_items"]); |
| 441 reverse = true; | 441 reverse = true; |
| 442 }); | 442 }); |
| 443 if not data then | 443 if not data then |
| 444 module:log("error", "Unable to get items: %s", err); | 444 module:log("error", "Unable to get items: %s", err); |
| 445 return true; | 445 return true; |
