]> git.mxchange.org Git - friendica.git/commitdiff
Move false-coalescing operator outside of the parameter in mod/salmon
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Oct 2021 19:50:14 +0000 (15:50 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Oct 2021 19:50:14 +0000 (15:50 -0400)
- Address https://github.com/friendica/friendica/issues/10756#issuecomment-939351242

mod/salmon.php

index 2e7a5596e5192cbf7d245654660a862b27471342..de8d97133452d8bac9303fc067dbd07057aba82c 100644 (file)
@@ -176,7 +176,9 @@ function salmon_post(App $a, $xml = '') {
        // Placeholder for hub discovery.
        $hub = '';
 
-       OStatus::import($data, $importer, $contact ?: [], $hub);
+       $contact = $contact ?: [];
+
+       OStatus::import($data, $importer, $contact, $hub);
 
        throw new \Friendica\Network\HTTPException\OKException();
 }