# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1643878946 -3600
# Node ID 5173f8a761a06336fdd2a4418c2094f0557110e8
# Parent  4dbca0858f0be784fea0ac6c777e436d841f497d
mod_pep: Clarify purpose of fallback service

Extra-extra obvious that no interaction with this should lead to
persisted changes

diff -r 4dbca0858f0b -r 5173f8a761a0 plugins/mod_pep.lua
--- a/plugins/mod_pep.lua	Thu Feb 03 09:46:19 2022 +0100
+++ b/plugins/mod_pep.lua	Thu Feb 03 10:02:26 2022 +0100
@@ -192,6 +192,8 @@
 	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 @@
 		["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)