Fixes notice: "Undefined index: type"
This commit is contained in:
parent
0c08e0fb79
commit
8211e6d887
1 changed files with 2 additions and 1 deletions
|
@ -101,7 +101,8 @@ class Receiver
|
||||||
|
|
||||||
$apcontact = APContact::getByURL($actor);
|
$apcontact = APContact::getByURL($actor);
|
||||||
if (empty($apcontact)) {
|
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') {
|
} elseif ($apcontact['type'] == 'Application' && $apcontact['nick'] == 'relay') {
|
||||||
self::processRelayPost($ldactivity, $actor);
|
self::processRelayPost($ldactivity, $actor);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue