aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-03 00:37:35 +0200
committerAndy Scherzinger <info@andy-scherzinger.de>2024-02-27 14:22:25 +0100
commitbdd37562f078cc077c34ab03919b8df00ee69a7a (patch)
tree488887a986dfbd28794007d88382046750bd0ee5 /lib
parent250084f8b913e326e20ccc60c86091beab0a6524 (diff)
downloadnextcloud-server-fix/noid/ldap-displayname-cached.tar.gz
nextcloud-server-fix/noid/ldap-displayname-cached.zip
fix: do not fetch LDAP display name all the timefix/noid/ldap-displayname-cached
- use cache and rely on background update mechanism - with ajax cron it will still run - core User must not cache uid as displayname to address edge case (early announcement with displayname not ready) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/User/User.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index 580c590e6eb..a53d84794fd 100644
--- a/lib/private/User/User.php
+++ b/lib/private/User/User.php
@@ -145,7 +145,7 @@ class User implements IUser {
if (!empty($displayName)) {
$this->displayName = $displayName;
} else {
- $this->displayName = $this->uid;
+ return $this->uid;
}
}
return $this->displayName;