From 3656647ee55ef28dc9c4bcf8dfb158bb92f5e7e6 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 9 Oct 2021 15:50:14 -0400 Subject: [PATCH] Move false-coalescing operator outside of the parameter in mod/salmon - Address https://github.com/friendica/friendica/issues/10756#issuecomment-939351242 --- mod/salmon.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/salmon.php b/mod/salmon.php index 2e7a5596e5..de8d971334 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -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(); }