mirror of
https://github.com/friendica/friendica
synced 2024-11-19 03:03:41 +00:00
Merge pull request #6439 from annando/issue-6438
Issue 6438: Avoid fatal error
This commit is contained in:
commit
0760b41fac
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ class JsonLD
|
||||||
|
|
||||||
// Workaround for Nextcloud Social
|
// Workaround for Nextcloud Social
|
||||||
// See issue https://github.com/nextcloud/social/issues/330
|
// See issue https://github.com/nextcloud/social/issues/330
|
||||||
|
if (is_array($json['@context'])) {
|
||||||
$json['@context'][] = 'https://w3id.org/security/v1';
|
$json['@context'][] = 'https://w3id.org/security/v1';
|
||||||
|
}
|
||||||
|
|
||||||
// Trying to avoid memory problems with large content fields
|
// Trying to avoid memory problems with large content fields
|
||||||
if (!empty($json['object']['source']['content'])) {
|
if (!empty($json['object']['source']['content'])) {
|
||||||
|
|
Loading…
Reference in a new issue