Merge pull request #14631 from mexon/mat/schemaorg

Repair schema.org context.
This commit is contained in:
Michael Vogel 2024-12-27 21:41:47 +01:00 committed by GitHub
commit c7c029a044
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 (is_int($key) && $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.