aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-03 09:46:19 +0100
committerKim Alvefur <zash@zash.se>2022-02-03 09:46:19 +0100
commite4344283cd68a1bb47f3cd24c215eba67b7ae7b1 (patch)
tree118f6409faf759d30938f695ba0f9c17fd08ffca /plugins
parent70598062e3231d1a4c441d70b6c7ea617f297f3a (diff)
downloadprosody-e4344283cd68a1bb47f3cd24c215eba67b7ae7b1.tar.gz
prosody-e4344283cd68a1bb47f3cd24c215eba67b7ae7b1.zip
mod_pep: Correct initialization of fallback service
I'm not sure what went wrong here, copy-paste mistake? Doesn't matter as long as nobody can create nodes on this service.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index f2a25e00..6fdf2265 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -193,14 +193,12 @@ local function get_subscriber_filter(username)
end
local nobody_service = pubsub.new({
- service = pubsub.new({
- node_defaults = {
- ["max_items"] = 1;
- ["persist_items"] = false;
- ["access_model"] = "presence";
- ["send_last_published_item"] = "on_sub_and_presence";
- };
- });
+ node_defaults = {
+ ["max_items"] = 1;
+ ["persist_items"] = false;
+ ["access_model"] = "presence";
+ ["send_last_published_item"] = "on_sub_and_presence";
+ };
});
function get_pep_service(username)