Repair schema.org context. Fixes #14630

This commit is contained in:
Matthew Exon 2024-12-27 17:37:29 +01:00
parent 7a17d7ab02
commit b2012947ac

View file

@ -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.