Fix PHP Notice: Undefined index: isForum in /src/Protocol/ActivityPub/Processor.php on line 605

Este commit está contenido en:
Michael 2021-05-29 19:09:41 +00:00
padre 452ed8aa8c
commit da20b48651
Se han modificado 1 ficheros con 1 adiciones y 1 borrados

Ver fichero

@ -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;