mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
Making Friendica compatible to Nextcloud Social
This commit is contained in:
parent
0cdf0ba422
commit
d113ccd93c
3 changed files with 7 additions and 3 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue