Browse Source

Merge pull request #6439 from annando/issue-6438

Issue 6438: Avoid fatal error
pull/6440/head
Tobias Diekershoff 2 years ago
committed by GitHub
parent
commit
0760b41fac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/Util/JsonLD.php

+ 3
- 1
src/Util/JsonLD.php View File

@ -95,7 +95,9 @@ class JsonLD
// Workaround for Nextcloud Social
// See issue https://github.com/nextcloud/social/issues/330
$json['@context'][] = 'https://w3id.org/security/v1';
if (is_array($json['@context'])) {
$json['@context'][] = 'https://w3id.org/security/v1';
}
// Trying to avoid memory problems with large content fields
if (!empty($json['object']['source']['content'])) {


Loading…
Cancel
Save