From ed1345f93862acf80f1e61d0d539a4383b01fd33 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 c38018a19..a15c849f1 100644 --- a/lib/GuestManager.php +++ b/lib/GuestManager.php @@ -77,6 +77,8 @@ public function createGuest(?IUser $createdBy, string $userId, string $email, st if ($displayName !== '') { $user->setDisplayName($displayName); + } else { + $user->setDisplayName($email); } if ($language !== '') {