Merge pull request #10856 from MrPetovan/bug/fatal-errors

Move false-coalescing operator outside of the parameter in mod/salmon
This commit is contained in:
Michael Vogel 2021-10-09 22:09:43 +02:00 committed by GitHub
commit d335c5038a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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