From e4344283cd68a1bb47f3cd24c215eba67b7ae7b1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 3 Feb 2022 09:46:19 +0100 Subject: 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. --- plugins/mod_pep.lua | 14 ++++++-------- 1 file 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) -- cgit v1.2.3