Software /
code /
prosody-modules
Changeset
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 |
parents | 3691:be430d077d1c |
children | 3693:0fb12a4b6106 |
files | mod_http_muc_log/http_muc_log.html mod_http_muc_log/mod_http_muc_log.lua |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_muc_log/http_muc_log.html Mon Sep 30 00:47:15 2019 +0200 +++ b/mod_http_muc_log/http_muc_log.html Mon Sep 30 00:51:05 2019 +0200 @@ -48,7 +48,10 @@ <h1 title="xmpp:{jid?}">{title}</h1> <nav> <ul> -<li class="button"><a href="xmpp:{jid?}?join">Join using a client</a></li>{links# +{jid_node& +<li class="button"><a href="xmpp:{jid?}?join">Join using a client</a></li> +} +{links# <li><a class="{item.rel?}" href="{item.href}{hide_presence&?p=h}" rel="{item.rel?}">{item.text}</a></li>} </ul> </nav>
--- a/mod_http_muc_log/mod_http_muc_log.lua Mon Sep 30 00:47:15 2019 +0200 +++ b/mod_http_muc_log/mod_http_muc_log.lua Mon Sep 30 00:51:05 2019 +0200 @@ -242,6 +242,7 @@ return render(template, { title = get_room(room):get_name(); jid = get_room(room).jid; + jid_node = jid_split(get_room(room).jid); hide_presence = hide_presence(request); presence_available = presence_logged; years = years; @@ -373,6 +374,7 @@ return render(template, { title = ("%s - %s"):format(get_room(room):get_name(), date); jid = get_room(room).jid; + jid_node = jid_split(get_room(room).jid); hide_presence = hide_presence(request); presence_available = presence_logged; lines = logs;