diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 3aa3ab957c..84c4affc70 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -1455,6 +1455,11 @@ class DFRN $dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]); + if (empty($dest_url)) { + Logger::info('Empty destination', ['public' => $public_batch, 'contact' => $contact]); + return -24; + } + $content_type = ($public_batch ? "application/magic-envelope+xml" : "application/json"); $postResult = Network::post($dest_url, $envelope, ["Content-Type: ".$content_type]);