Comparison

mod_http_muc_log/mod_http_muc_log.lua @ 3702:caf27826c7b2

mod_http_muc_log: Use configured room language in room title/desc #a11y Room title and description is presumably using the language set in the room configuration.
author Kim Alvefur <zash@zash.se>
date Wed, 09 Oct 2019 21:36:23 +0200
parent 3692:96c6d9b0969f
child 3703:7244ff1d62a8
comparison
equal deleted inserted replaced
3701:3bb9a0806439 3702:caf27826c7b2
375 title = ("%s - %s"):format(get_room(room):get_name(), date); 375 title = ("%s - %s"):format(get_room(room):get_name(), date);
376 jid = get_room(room).jid; 376 jid = get_room(room).jid;
377 jid_node = jid_split(get_room(room).jid); 377 jid_node = jid_split(get_room(room).jid);
378 hide_presence = hide_presence(request); 378 hide_presence = hide_presence(request);
379 presence_available = presence_logged; 379 presence_available = presence_logged;
380 lang = get_room(room).get_language and get_room(room):get_language();
380 lines = logs; 381 lines = logs;
381 links = links; 382 links = links;
382 }); 383 });
383 end 384 end
384 385
389 if not (room.get_hidden or room.is_hidden)(room) then 390 if not (room.get_hidden or room.is_hidden)(room) then
390 room_list[i], i = { 391 room_list[i], i = {
391 jid = room.jid; 392 jid = room.jid;
392 href = get_link(jid_split(room.jid), default_view); 393 href = get_link(jid_split(room.jid), default_view);
393 name = room:get_name(); 394 name = room:get_name();
395 lang = room.get_language and room:get_language();
394 description = room:get_description(); 396 description = room:get_description();
395 }, i + 1; 397 }, i + 1;
396 end 398 end
397 end 399 end
398 400