Fixes notice: "Undefined index: type"

2022.09-rc
Michael 2021-03-10 14:40:57 +00:00
rodzic 0c08e0fb79
commit 8211e6d887
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -101,7 +101,8 @@ class Receiver
$apcontact = APContact::getByURL($actor);
if (empty($apcontact)) {
Logger::notice('Unable to retrieve AP contact for actor', ['actor' => $actor]);
Logger::notice('Unable to retrieve AP contact for actor - message is discarded', ['actor' => $actor]);
return;
} elseif ($apcontact['type'] == 'Application' && $apcontact['nick'] == 'relay') {
self::processRelayPost($ldactivity, $actor);
return;