mirror of
https://github.com/friendica/friendica
synced 2025-01-23 18:19:46 +00:00
Only replace schema.org if it is a top-level context
This commit is contained in:
parent
b2012947ac
commit
ba26e9c06d
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class JsonLD
|
||||||
$value = 'http://schema.org#';
|
$value = 'http://schema.org#';
|
||||||
}
|
}
|
||||||
// Issue 14630: Wordpress Event Bridge uses a URL that cannot be retrieved
|
// Issue 14630: Wordpress Event Bridge uses a URL that cannot be retrieved
|
||||||
if ($value == 'https://schema.org/') {
|
if (is_int($key) && $value == 'https://schema.org/') {
|
||||||
Logger::debug('https schema.org path fixed');
|
Logger::debug('https schema.org path fixed');
|
||||||
$value = 'https://schema.org/docs/jsonldcontext.json#';
|
$value = 'https://schema.org/docs/jsonldcontext.json#';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue