Diff

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
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Wed Oct 09 21:24:11 2019 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Wed Oct 09 21:36:23 2019 +0200
@@ -377,6 +377,7 @@
 		jid_node = jid_split(get_room(room).jid);
 		hide_presence = hide_presence(request);
 		presence_available = presence_logged;
+		lang = get_room(room).get_language and get_room(room):get_language();
 		lines = logs;
 		links = links;
 	});
@@ -391,6 +392,7 @@
 				jid = room.jid;
 				href = get_link(jid_split(room.jid), default_view);
 				name = room:get_name();
+				lang = room.get_language and room:get_language();
 				description = room:get_description();
 			}, i + 1;
 		end