aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-17 05:47:06 +0200
committerKim Alvefur <zash@zash.se>2017-10-17 05:47:06 +0200
commit54944ff8077fcbbbf2e2ca10810def39c93fdc59 (patch)
tree06f9e43f6658a61fe031728272facf5a381cd9f2 /util
parenta416b20494d239078401db223998549d287d131a (diff)
downloadprosody-54944ff8077fcbbbf2e2ca10810def39c93fdc59.tar.gz
prosody-54944ff8077fcbbbf2e2ca10810def39c93fdc59.zip
pubsub: Distinguish internal representation of node config from XEP-0060 form (util.pubsub should be protocol-agnostic)
Diffstat (limited to 'util')
-rw-r--r--util/pubsub.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index a10f9a84..9397484a 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -5,13 +5,14 @@ local service = {};
local service_mt = { __index = service };
local default_config = { __index = {
- itemstore = function (config, _) return cache.new(tonumber(config["pubsub#max_items"])) end;
+ itemstore = function (config, _) return cache.new(config["max_items"]) end;
broadcaster = function () end;
get_affiliation = function () end;
capabilities = {};
} };
local default_node_config = { __index = {
- ["pubsub#max_items"] = "20";
+ ["persist_items"] = false;
+ ["max_items"] = 20;
} };
local function new(config)