Move false-coalescing operator outside of the parameter in mod/salmon

- Address https://github.com/friendica/friendica/issues/10756#issuecomment-939351242
This commit is contained in:
Hypolite Petovan 2021-10-09 15:50:14 -04:00
parent 58215e56c3
commit 3656647ee5

View 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();
}