]> git.mxchange.org Git - friendica.git/commitdiff
Repair schema.org context. Fixes #14630
authorMatthew Exon <git.mexon@spamgourmet.com>
Fri, 27 Dec 2024 16:37:29 +0000 (17:37 +0100)
committerMatthew Exon <git.mexon@spamgourmet.com>
Fri, 27 Dec 2024 16:51:43 +0000 (17:51 +0100)
src/Util/JsonLD.php

index 74f6e4baca8c919259216683bfa3f001b6712829..df320b4bf4f00b707fc6df48805ec84d343d8aa0 100644 (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.