From cf8c91f492348a5e244cc75fd65cc10228ea6d98 Mon Sep 17 00:00:00 2001 From: gravel Date: Sun, 10 Dec 2023 21:00:46 +0000 Subject: [PATCH] scrap community json+ld data --- sites/+components/communities-json-ld.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/sites/+components/communities-json-ld.php b/sites/+components/communities-json-ld.php index 1a415c5..cf3d00b 100644 --- a/sites/+components/communities-json-ld.php +++ b/sites/+components/communities-json-ld.php @@ -33,31 +33,9 @@ ); }, $rooms), ); - - $json_ld_data_rooms = array( - '@context' => 'https://schema.org/', - '@graph' => array_map(function(CommunityRoom $room) { - $values = array( - '@type' => 'EntryPoint', - '@id' => $room->get_join_url(), - 'additionalType' => 'VirtualLocation', - 'name' => $room->name, - 'description' => $room->description, - 'url' => $SITE_CANONICAL_URL . $room->get_details_url(), - 'image' => $SITE_CANONICAL_URL . '/' . room_icon($room, '64x64') - ); - return array_filter($values, function ($value) { - return $value != null; - }); - }, $rooms), - ) ?> -