Fix crash in tag serialization

dev
gravel 1 year ago
parent 83842840e7
commit 2c1a4973bb
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -48,7 +48,7 @@
*/ */
public static function cacheable_room_tags(array $tags) { public static function cacheable_room_tags(array $tags) {
return array_map( return array_map(
'CommunityTag::__toString', function (\CommunityTag $tag) { return $tag->__toString(); },
array_filter($tags, function(\CommunityTag $tag) { array_filter($tags, function(\CommunityTag $tag) {
return $tag->type == TagType::USER_TAG; return $tag->type == TagType::USER_TAG;
}) })

Loading…
Cancel
Save