Comparison

mod_http_muc_log/mod_http_muc_log.lua @ 3692:96c6d9b0969f

mod_http_muc_log: Hide room join link from room listing Node-less MUC is a secret non-standard hack anyways
author Kim Alvefur <zash@zash.se>
date Mon, 30 Sep 2019 00:51:05 +0200
parent 3690:8c0a6d4541d5
child 3702:caf27826c7b2
comparison
equal deleted inserted replaced
3691:be430d077d1c 3692:96c6d9b0969f
240 240
241 response.headers.content_type = "text/html; charset=utf-8"; 241 response.headers.content_type = "text/html; charset=utf-8";
242 return render(template, { 242 return render(template, {
243 title = get_room(room):get_name(); 243 title = get_room(room):get_name();
244 jid = get_room(room).jid; 244 jid = get_room(room).jid;
245 jid_node = jid_split(get_room(room).jid);
245 hide_presence = hide_presence(request); 246 hide_presence = hide_presence(request);
246 presence_available = presence_logged; 247 presence_available = presence_logged;
247 years = years; 248 years = years;
248 links = { 249 links = {
249 { href = "../", rel = "up", text = "Room list" }, 250 { href = "../", rel = "up", text = "Room list" },
371 372
372 response.headers.content_type = "text/html; charset=utf-8"; 373 response.headers.content_type = "text/html; charset=utf-8";
373 return render(template, { 374 return render(template, {
374 title = ("%s - %s"):format(get_room(room):get_name(), date); 375 title = ("%s - %s"):format(get_room(room):get_name(), date);
375 jid = get_room(room).jid; 376 jid = get_room(room).jid;
377 jid_node = jid_split(get_room(room).jid);
376 hide_presence = hide_presence(request); 378 hide_presence = hide_presence(request);
377 presence_available = presence_logged; 379 presence_available = presence_logged;
378 lines = logs; 380 lines = logs;
379 links = links; 381 links = links;
380 }); 382 });