mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
[Fix #24682]: ensure federation cloud id is retruned if FN property not found
Signed-off-by: Guillaume Virlet <github@virlet.org>
This commit is contained in:
parent
ea4fc6b507
commit
83491c6c58
1 changed files with 7 additions and 1 deletions
|
|
@ -86,7 +86,13 @@ class CloudIdManager implements ICloudIdManager {
|
|||
if (isset($entry['CLOUD'])) {
|
||||
foreach ($entry['CLOUD'] as $cloudID) {
|
||||
if ($cloudID === $cloudId) {
|
||||
return $entry['FN'];
|
||||
// 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'];
|
||||
} else {
|
||||
return $cloudID;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue