mirror of
https://github.com/friendica/friendica
synced 2024-11-17 22:23:41 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue