Merge pull request #10335 from annando/botice

Fix PHP Notice:  Undefined index: isForum in /src/Protocol/ActivityPub/Processor.php on line 605
pull/10336/head
Philipp 2021-05-29 21:17:01 +02:00 zatwierdzone przez GitHub
commit dd63c243ab
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -602,7 +602,7 @@ class Processor
continue;
}
if (!$item['isForum'] && ($receiver != 0) && ($item['gravity'] == GRAVITY_PARENT) &&
if (!($item['isForum'] ?? false) && ($receiver != 0) && ($item['gravity'] == GRAVITY_PARENT) &&
($item['post-reason'] == Item::PR_BCC) && !Contact::isSharingByURL($activity['author'], $receiver)) {
Logger::info('Top level post via BCC from a non sharer, ignoring', ['uid' => $receiver, 'contact' => $item['contact-id']]);
continue;