From 0ac3e7e39691be4a1b9e56676c2b583ce1d9b150 Mon Sep 17 00:00:00 2001 From: gravel Date: Thu, 14 Dec 2023 14:54:29 +0000 Subject: [PATCH] Fix logic based on string tags --- php/servers/servers-rooms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/servers/servers-rooms.php b/php/servers/servers-rooms.php index 65f0eb0..fe52a1b 100644 --- a/php/servers/servers-rooms.php +++ b/php/servers/servers-rooms.php @@ -475,7 +475,7 @@ // Description not included due to false positives. $blob = strtolower($this->name) . " " . - strtolower(join(" ", $this->tags)); + strtolower(join(" ", $this->string_tags)); foreach (CommunityTag::NSFW_KEYWORDS as $keyword) { if (str_contains($blob, $keyword)) { @@ -501,7 +501,7 @@ public function is_testing_room(): bool { global $TESTING_INCLUDE; - return in_array("test", $this->tags) || $this->matched_by_list($TESTING_INCLUDE); + return in_array("test", $this->string_tags) || $this->matched_by_list($TESTING_INCLUDE); } /**