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:
parent
58215e56c3
commit
3656647ee5
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user