Comparison

plugins/mod_pep_plus.lua @ 8318:d0a7fc7614de

mod_pubsub, mod_pep_plus: Rename simple_itemstore to reflect that it's based on archive storage
author Kim Alvefur <zash@zash.se>
date Thu, 12 Oct 2017 01:31:08 +0200
parent 8315:967f04fe7fd4
child 8319:57e3ad11f3f6
comparison
equal deleted inserted replaced
8317:ff57b3cc5a8e 8318:d0a7fc7614de
43 local function simple_itemstore(username) 43 local function simple_itemstore(username)
44 return function (config, node) 44 return function (config, node)
45 module:log("debug", "new simple_itemstore(%q, %q)", username, node); 45 module:log("debug", "new simple_itemstore(%q, %q)", username, node);
46 known_nodes_map:set(username, node, true); 46 known_nodes_map:set(username, node, true);
47 local archive = module:open_store("pep_"..node, "archive"); 47 local archive = module:open_store("pep_"..node, "archive");
48 return lib_pubsub.simple_itemstore(archive, config, username, node, false); 48 return lib_pubsub.archive_itemstore(archive, config, username, node, false);
49 end 49 end
50 end 50 end
51 51
52 local function get_broadcaster(username) 52 local function get_broadcaster(username)
53 local user_bare = jid_join(username, host); 53 local user_bare = jid_join(username, host);