From bdd37562f078cc077c34ab03919b8df00ee69a7a Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Sat, 3 Jun 2023 00:37:35 +0200 Subject: fix: do not fetch LDAP display name all the time - 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 --- lib/private/User/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3