]> git.mxchange.org Git - friendica.git/commitdiff
Only replace schema.org if it is a top-level context
authorMatthew Exon <git.mexon@spamgourmet.com>
Fri, 27 Dec 2024 20:28:11 +0000 (21:28 +0100)
committerMatthew Exon <git.mexon@spamgourmet.com>
Fri, 27 Dec 2024 20:28:11 +0000 (21:28 +0100)
src/Util/JsonLD.php

index df320b4bf4f00b707fc6df48805ec84d343d8aa0..25131a080f750599072db3f5ae1b3c707aa89f1a 100644 (file)
@@ -228,7 +228,7 @@ class JsonLD
                                $value = 'http://schema.org#';
                        }
                        // 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');
                                $value = 'https://schema.org/docs/jsonldcontext.json#';
                        }