diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 3d38005455..a6bb882e86 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2969,7 +2969,7 @@ class Contact $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']]); } /** diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 89ffca153a..3d4c137a5e 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -985,7 +985,7 @@ class DFRN Logger::notice('Unable to find contact details for ' . $contact['id'] . ' - ' . $contact['addr']); return -22; } - $pubkey = $fcontact['pubkey']; + $pubkey = $fcontact['pubkey'] ?? ''; } else { $pubkey = ''; }