Nore fixes
This commit is contained in:
parent
10bb7d5625
commit
4f3321cc9f
|
@ -275,7 +275,7 @@ class APContact
|
||||||
|
|
||||||
// Quit if none of the basic values are set
|
// Quit if none of the basic values are set
|
||||||
if (empty($apcontact['url']) || empty($apcontact['type']) || (($apcontact['type'] != 'Tombstone') && empty($apcontact['inbox']))) {
|
if (empty($apcontact['url']) || empty($apcontact['type']) || (($apcontact['type'] != 'Tombstone') && empty($apcontact['inbox']))) {
|
||||||
return $fetched_contact;
|
return $fetched_contact ?? [];
|
||||||
} elseif ($apcontact['type'] == 'Tombstone') {
|
} elseif ($apcontact['type'] == 'Tombstone') {
|
||||||
// The "inbox" field must have a content
|
// The "inbox" field must have a content
|
||||||
$apcontact['inbox'] = '';
|
$apcontact['inbox'] = '';
|
||||||
|
@ -283,7 +283,7 @@ class APContact
|
||||||
|
|
||||||
// Quit if this doesn't seem to be an account at all
|
// Quit if this doesn't seem to be an account at all
|
||||||
if (!in_array($apcontact['type'], ActivityPub::ACCOUNT_TYPES)) {
|
if (!in_array($apcontact['type'], ActivityPub::ACCOUNT_TYPES)) {
|
||||||
return $fetched_contact;
|
return $fetched_contact ?? [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$parts = parse_url($apcontact['url']);
|
$parts = parse_url($apcontact['url']);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user