From b2012947ac10790c534ede1668797e176710be80 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Fri, 27 Dec 2024 17:37:29 +0100 Subject: [PATCH] Repair schema.org context. Fixes #14630 --- src/Util/JsonLD.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index 74f6e4baca..df320b4bf4 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -227,6 +227,11 @@ class JsonLD Logger::debug('schema.org path fixed'); $value = 'http://schema.org#'; } + // Issue 14630: Wordpress Event Bridge uses a URL that cannot be retrieved + if ($value == 'https://schema.org/') { + Logger::debug('https schema.org path fixed'); + $value = 'https://schema.org/docs/jsonldcontext.json#'; + } }); // Bookwyrm transmits "id" fields with "null", which isn't allowed.