From f5aaba11df23fa05c8e3aa08cffab8acb0c56b1c Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Tue, 15 Sep 2026 11:41:58 +0530 Subject: [PATCH] docs(avatars): note handle prefix in getWords docblock --- src/Appwrite/AvatarPhotos/Providers/Initials.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/AvatarPhotos/Providers/Initials.php b/src/Appwrite/AvatarPhotos/Providers/Initials.php index 042a1241c8..4442c3ae93 100644 --- a/src/Appwrite/AvatarPhotos/Providers/Initials.php +++ b/src/Appwrite/AvatarPhotos/Providers/Initials.php @@ -100,13 +100,13 @@ class Initials extends Photo /** * Words that start with a letter or digit, split on spaces — or on - * underscores when the label has none. + * underscores when the label has none. A leading @, as in a handle, is + * ignored. * * @return string[] */ private function getWords(string $name): array { - // Handles like @walter take their initials from the name after the @ $words = \explode(' ', \ltrim(\trim($name), '@')); // Fallback: split on underscores when there is no space