summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Federation/CloudIdManager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Federation/CloudIdManager.php b/lib/private/Federation/CloudIdManager.php
index 43bc0d86a38..d99fc350520 100644
--- a/lib/private/Federation/CloudIdManager.php
+++ b/lib/private/Federation/CloudIdManager.php
@@ -110,7 +110,8 @@ class CloudIdManager implements ICloudIdManager {
$host = $fixedRemote;
}
$id = $user . '@' . $remote;
- return new CloudId($id, $user, $fixedRemote, $this->getDisplayNameFromContact($id));
+ $displayName = $this->getDisplayNameFromContact($user . '@' . $host);
+ return new CloudId($id, $user, $fixedRemote, $displayName);
}
/**