aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-03 10:02:26 +0100
committerKim Alvefur <zash@zash.se>2022-02-03 10:02:26 +0100
commitf1b61294fccf013d6ee8d4df45a86f5bcd09fa9d (patch)
tree2ef93092f70bc13d9c13a8472723683acf2d8418 /plugins
parente4344283cd68a1bb47f3cd24c215eba67b7ae7b1 (diff)
downloadprosody-f1b61294fccf013d6ee8d4df45a86f5bcd09fa9d.tar.gz
prosody-f1b61294fccf013d6ee8d4df45a86f5bcd09fa9d.zip
mod_pep: Clarify purpose of fallback service
Extra-extra obvious that no interaction with this should lead to persisted changes
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua7
1 files changed, 7 insertions, 0 deletions
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)