diff --git a/mods/sample-nginx-certbot.config b/mods/sample-nginx-certbot.config index b9715f8ed..1e081404f 100644 --- a/mods/sample-nginx-certbot.config +++ b/mods/sample-nginx-certbot.config @@ -1,6 +1,6 @@ ## -# Friendica Nginx configuration template to be autocnfgiured with cerbot -# nased on sample-nginx.config by Olaf Conradi +# Friendica Nginx configuration template to be autoconfigured with certbot +# based on sample-nginx.config by Olaf Conradi # # On Debian based distributions you can add this file to # /etc/nginx/sites-available diff --git a/src/Core/Protocol.php b/src/Core/Protocol.php index 015612ade..25955abd5 100644 --- a/src/Core/Protocol.php +++ b/src/Core/Protocol.php @@ -182,7 +182,8 @@ class Protocol public static function unfollow(array $contact, array $user): ?bool { if (empty($contact['network'])) { - throw new \InvalidArgumentException('Missing network key in contact array'); + Logger::notice('Contact has got no network, we quit here', ['id' => $contact['id']]); + return null; } $protocol = $contact['network']; @@ -205,7 +206,8 @@ class Protocol $slap = OStatus::salmon($item, $user); if (empty($contact['notify'])) { - throw new \InvalidArgumentException('Missing expected "notify" key in OStatus/DFRN contact'); + Logger::notice('OStatus/DFRN Contact is missing notify, we quit here', ['id' => $contact['id']]); + return null; } return Salmon::slapper($user, $contact['notify'], $slap) === 0;