Comparison

plugins/mod_pep.lua @ 12248:4dbca0858f0b

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.
author Kim Alvefur <zash@zash.se>
date Thu, 03 Feb 2022 09:46:19 +0100
parent 12153:26af75c20163
child 12249:5173f8a761a0
comparison
equal deleted inserted replaced
12247:dcad8940f072 12248:4dbca0858f0b
191 return broadcast_to; 191 return broadcast_to;
192 end 192 end
193 end 193 end
194 194
195 local nobody_service = pubsub.new({ 195 local nobody_service = pubsub.new({
196 service = pubsub.new({ 196 node_defaults = {
197 node_defaults = { 197 ["max_items"] = 1;
198 ["max_items"] = 1; 198 ["persist_items"] = false;
199 ["persist_items"] = false; 199 ["access_model"] = "presence";
200 ["access_model"] = "presence"; 200 ["send_last_published_item"] = "on_sub_and_presence";
201 ["send_last_published_item"] = "on_sub_and_presence"; 201 };
202 };
203 });
204 }); 202 });
205 203
206 function get_pep_service(username) 204 function get_pep_service(username)
207 local user_bare = jid_join(username, host); 205 local user_bare = jid_join(username, host);
208 local service = services[username]; 206 local service = services[username];