From: Matthew Exon Date: Fri, 27 Dec 2024 16:37:29 +0000 (+0100) Subject: Repair schema.org context. Fixes #14630 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b2012947ac10790c534ede1668797e176710be80;p=friendica.git Repair schema.org context. Fixes #14630 --- 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.