Software /
code /
prosody-modules
Comparison
mod_http_muc_log/mod_http_muc_log.lua @ 3893:3f20b7c88afb
mod_http_muc_log: Expose JID localpart to the template
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 17 Feb 2020 21:50:55 +0100 |
parent | 3892:96a2e5097fc4 |
child | 4034:a359972d246e |
comparison
equal
deleted
inserted
replaced
3892:96a2e5097fc4 | 3893:3f20b7c88afb |
---|---|
410 local function list_rooms(event) | 410 local function list_rooms(event) |
411 local request, response = event.request, event.response; | 411 local request, response = event.request, event.response; |
412 local room_list, i = {}, 1; | 412 local room_list, i = {}, 1; |
413 for room in each_room() do | 413 for room in each_room() do |
414 if not (room.get_hidden or room.is_hidden)(room) then | 414 if not (room.get_hidden or room.is_hidden)(room) then |
415 local localpart = jid_split(room.jid); | |
415 room_list[i], i = { | 416 room_list[i], i = { |
416 jid = room.jid; | 417 jid = room.jid; |
417 href = get_link(jid_split(room.jid), default_view); | 418 localpart = localpart; |
419 href = get_link(localpart, default_view); | |
418 name = room:get_name(); | 420 name = room:get_name(); |
419 lang = room.get_language and room:get_language(); | 421 lang = room.get_language and room:get_language(); |
420 description = room:get_description(); | 422 description = room:get_description(); |
421 }, i + 1; | 423 }, i + 1; |
422 end | 424 end |