|
|
|
@ -136,6 +136,9 @@
|
|
|
|
|
if (CommunityTag::is_showcased_tag($this->text)) {
|
|
|
|
|
$classname .= " room-label-showcased";
|
|
|
|
|
}
|
|
|
|
|
if (CommunityTag::is_highlighted_tag($this->text)) {
|
|
|
|
|
$classname .= " room-label-highlighted";
|
|
|
|
|
}
|
|
|
|
|
return $classname;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -161,7 +164,9 @@
|
|
|
|
|
"we're here"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
private const SHOWCASED_TAGS = ["official", "new", "we're here"];
|
|
|
|
|
private const SHOWCASED_TAGS = ["official", "new", "we're here", "nsfw", "read-only"];
|
|
|
|
|
|
|
|
|
|
private const HIGHLIGHTED_TAGS = ["new", "we're here"];
|
|
|
|
|
|
|
|
|
|
private const REDUNDANT_TAGS = ["session"];
|
|
|
|
|
|
|
|
|
@ -181,5 +186,9 @@
|
|
|
|
|
public static function is_showcased_tag(string $tag): bool {
|
|
|
|
|
return in_array(strtolower($tag), CommunityTag::SHOWCASED_TAGS);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static function is_highlighted_tag(string $tag): bool {
|
|
|
|
|
return in_array(strtolower($tag), CommunityTag::HIGHLIGHTED_TAGS);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|