aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-17 00:07:34 +0200
committerKim Alvefur <zash@zash.se>2017-10-17 00:07:34 +0200
commit3c4d4322b36db74281937fa71d8571608cb795a9 (patch)
tree4fc2280641e27aea1ac849179c83d8bad7f5f5ad /plugins
parentf2bdafd709ba284b5d9d74bbf8924829b14a8060 (diff)
downloadprosody-3c4d4322b36db74281937fa71d8571608cb795a9.tar.gz
prosody-3c4d4322b36db74281937fa71d8571608cb795a9.zip
mod_pubsub: Remove expose_publisher argument since it is handled in broadcaster
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua2
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua11
2 files changed, 5 insertions, 8 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index 49b21838..c7e163ee 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -40,7 +40,7 @@ end
local function simple_itemstore(config, node)
local archive = module:open_store("pubsub_"..node, "archive");
- return lib_pubsub.archive_itemstore(archive, config, nil, node, expose_publisher);
+ return lib_pubsub.archive_itemstore(archive, config, nil, node);
end
if enable_persistence then
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index e7481b4f..2f90d79e 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -328,16 +328,13 @@ function handlers.get_default(origin, stanza, default, service)
return true;
end
-local function create_encapsulating_item(id, payload, publisher, expose_publisher)
+local function create_encapsulating_item(id, payload)
local item = st.stanza("item", { id = id, xmlns = xmlns_pubsub });
item:add_child(payload);
- if expose_publisher then
- item.attr.publisher = publisher;
- end
return item;
end
-local function archive_itemstore(archive, config, user, node, expose_publisher)
+local function archive_itemstore(archive, config, user, node)
module:log("debug", "Creation of itemstore for node %s with config %s", node, config);
local get_set = {};
function get_set:items() -- luacheck: ignore 212/self
@@ -355,7 +352,7 @@ local function archive_itemstore(archive, config, user, node, expose_publisher)
if id == nil then
return;
end
- local item = create_encapsulating_item(id, payload, publisher, expose_publisher);
+ local item = create_encapsulating_item(id, payload, publisher);
return id, item;
end);
end
@@ -375,7 +372,7 @@ local function archive_itemstore(archive, config, user, node, expose_publisher)
if id == nil then
return nil;
end
- return create_encapsulating_item(id, payload, publisher, expose_publisher);
+ return create_encapsulating_item(id, payload, publisher);
end
function get_set:set(key, value) -- luacheck: ignore 212/self
local data, err;