From f1b61294fccf013d6ee8d4df45a86f5bcd09fa9d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 3 Feb 2022 10:02:26 +0100 Subject: mod_pep: Clarify purpose of fallback service Extra-extra obvious that no interaction with this should lead to persisted changes --- plugins/mod_pep.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 6fdf2265..55b2d020 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -192,6 +192,8 @@ local function get_subscriber_filter(username) end end +-- Read-only service with no nodes where nobody is allowed anything to act as a +-- fallback for interactions with non-existant users local nobody_service = pubsub.new({ node_defaults = { ["max_items"] = 1; @@ -199,6 +201,11 @@ local nobody_service = pubsub.new({ ["access_model"] = "presence"; ["send_last_published_item"] = "on_sub_and_presence"; }; + autocreate_on_publish = false; + autocreate_on_subscribe = false; + get_affiliation = function () + return "outcast"; + end; }); function get_pep_service(username) -- cgit v1.2.3