Comparison

plugins/mod_pubsub/pubsub.lib.lua @ 8218:2c75a5ba58fc

mod_pubsub: Pass 'user' to simple_itemstore
author Kim Alvefur <zash@zash.se>
date Wed, 26 Apr 2017 12:09:58 +0200
parent 8217:5f4e0d67b82a
child 8219:2e68ae095645
comparison
equal deleted inserted replaced
8217:5f4e0d67b82a 8218:2c75a5ba58fc
324 item.attr.publisher = publisher; 324 item.attr.publisher = publisher;
325 end 325 end
326 return item; 326 return item;
327 end 327 end
328 328
329 local function simple_itemstore(archive, config, node, expose_publisher) 329 local function simple_itemstore(archive, config, user, node, expose_publisher)
330 module:log("debug", "Creation of itemstore for node %s with config %s", node, config); 330 module:log("debug", "Creation of itemstore for node %s with config %s", node, config);
331 local get_set = {}; 331 local get_set = {};
332 function get_set:items() 332 function get_set:items()
333 local store = self.store; 333 local store = self.store;
334 local data, err = archive:find(node); 334 local data, err = archive:find(node);