From 231c9621ac823c2b3f62c219463cc090a9a14508 Mon Sep 17 00:00:00 2001 From: gravel Date: Thu, 14 Dec 2023 16:55:50 +0000 Subject: [PATCH] Hide #unlisted rooms --- php/servers/servers-rooms.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php/servers/servers-rooms.php b/php/servers/servers-rooms.php index fe52a1b..2c90436 100644 --- a/php/servers/servers-rooms.php +++ b/php/servers/servers-rooms.php @@ -231,7 +231,9 @@ * Returns true if room should not be reflected in listings. */ public function is_off_record(): bool { - return !$this->read || $this->is_testing_room(); + return !$this->read + || $this->is_testing_room() + || in_array("unlisted", $this->string_tags); } /**