Merge pull request #24962 from nextcloud/backport/24683/stable19
[stable19] [Fix #24682]: ensure federation cloud id is retruned if FN property not found
This commit is contained in:
commit
3f8024932a
|
@ -86,7 +86,13 @@ class CloudIdManager implements ICloudIdManager {
|
||||||
if (isset($entry['CLOUD'])) {
|
if (isset($entry['CLOUD'])) {
|
||||||
foreach ($entry['CLOUD'] as $cloudID) {
|
foreach ($entry['CLOUD'] as $cloudID) {
|
||||||
if ($cloudID === $cloudId) {
|
if ($cloudID === $cloudId) {
|
||||||
|
// Warning, if user decides to make his full name local only,
|
||||||
|
// no FN is found on federated servers
|
||||||
|
if (isset($entry['FN'])) {
|
||||||
return $entry['FN'];
|
return $entry['FN'];
|
||||||
|
} else {
|
||||||
|
return $cloudID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue