From cd9a4fc049328aedd5944611badbf6fbef5c632d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 29 Apr 2026 18:30:12 +0200 Subject: [PATCH] fix: set displayname to email if no other is specified this ensures that hashed uid guests have a sensible display name Signed-off-by: Robin Appelman --- lib/GuestManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/GuestManager.php b/lib/GuestManager.php index 7986d5eaa..ce15809f2 100644 --- a/lib/GuestManager.php +++ b/lib/GuestManager.php @@ -83,6 +83,8 @@ public function createGuest(?IUser $createdBy, string $userId, string $email, st if ($displayName !== '') { $user->setDisplayName($displayName); + } else { + $user->setDisplayName($email); } if ($language !== '') {