@ -110,7 +110,6 @@
function jsonSerialize(): array {
$details = get_object_vars($this);
unset($details['server']);
$details['tags'] = CommunityTag::cacheable_room_tags($details['tags']);
return $details;
}
@ -42,19 +42,6 @@
/**
* @param \CommunityTag[] $tags
* @return string[]
*/
public static function cacheable_room_tags(array $tags) {
return array_map(
function (\CommunityTag $tag) { return $tag->__toString(); },
array_filter($tags, function(\CommunityTag $tag) {
return $tag->type == TagType::USER_TAG;
})
);
private static function preprocess_tag(?string $tag) {
$tag = trim($tag);