mod_pep: Correct initialization of fallback service
authorKim Alvefur <zash@zash.se>
Thu, 03 Feb 2022 09:46:19 +0100
changeset 12252 4dbca0858f0b
parent 12251 dcad8940f072
child 12253 5173f8a761a0
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
--- a/plugins/mod_pep.lua	Wed Feb 02 18:36:08 2022 +0100
+++ b/plugins/mod_pep.lua	Thu Feb 03 09:46:19 2022 +0100
@@ -193,14 +193,12 @@
 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)