From 16800033192e035a2588bb74cfb40e80286d9376 Mon Sep 17 00:00:00 2001 From: gravel Date: Fri, 28 Jul 2023 21:11:05 +0000 Subject: [PATCH] Omit read-denied rooms --- sites/+components/tbl-communities.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sites/+components/tbl-communities.php b/sites/+components/tbl-communities.php index 35b7105..6a42cc7 100644 --- a/sites/+components/tbl-communities.php +++ b/sites/+components/tbl-communities.php @@ -49,6 +49,14 @@ $room): ?> read) { + // Skip unreadable rooms. + + // While not necessary, this hack can later allow SOGS + // to pass server-wide info using hidden dummy rooms. + continue; + } + $pubkey = $room->server->get_pubkey(); $icon_hue = hexdec($pubkey[2] . $pubkey[2]); $icon_color = "hsl($icon_hue, 80%, 50%)";