]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/JsonLD.php
Making Friendica compatible to Nextcloud Social
[friendica.git] / src / Util / JsonLD.php
index cd3a6ec2708899d49483a7bfb3c73a92c7d762cf..e2c2dddc1b957eb1b3d6096d5e26cc34b904b567 100644 (file)
@@ -93,6 +93,10 @@ class JsonLD
                        'dc' => (object)['@id' => 'http://purl.org/dc/terms/', '@type' => '@id'],
                        'toot' => (object)['@id' => 'http://joinmastodon.org/ns#', '@type' => '@id']];
 
+               // Workaround for Nextcloud Social
+               // See issue https://github.com/nextcloud/social/issues/330
+               $json['@context'][] = 'https://w3id.org/security/v1';
+
                // Trying to avoid memory problems with large content fields
                if (!empty($json['object']['source']['content'])) {
                        $content = $json['object']['source']['content'];