Merge pull request #11795 from Quix0r/fixes/type-errors

Fixes/type errors
This commit is contained in:
Hypolite Petovan 2022-07-29 08:10:13 -04:00 committed by GitHub
commit f97a80e2cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -2969,7 +2969,7 @@ class Contact
$cdata = self::getPublicAndUserContactID($contact['id'], $contact['uid']); $cdata = self::getPublicAndUserContactID($contact['id'], $contact['uid']);
DI::notification()->deleteForUserByVerb($contact['uid'], Activity::FOLLOW, ['actor-id' => $contact['public']]); DI::notification()->deleteForUserByVerb($contact['uid'], Activity::FOLLOW, ['actor-id' => $cdata['public']]);
} }
/** /**

View file

@ -985,7 +985,7 @@ class DFRN
Logger::notice('Unable to find contact details for ' . $contact['id'] . ' - ' . $contact['addr']); Logger::notice('Unable to find contact details for ' . $contact['id'] . ' - ' . $contact['addr']);
return -22; return -22;
} }
$pubkey = $fcontact['pubkey']; $pubkey = $fcontact['pubkey'] ?? '';
} else { } else {
$pubkey = ''; $pubkey = '';
} }