Merge pull request #6439 from annando/issue-6438

Issue 6438: Avoid fatal error
2022.09-rc
Tobias Diekershoff 2019-01-13 17:06:52 +01:00 zatwierdzone przez GitHub
commit 0760b41fac
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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'])) {