mod_http_muc_log: Hide room join link from room listing
Node-less MUC is a secret non-standard hack anyways
--- 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;