From 41f753d02733aa3c2c879caf5d914feb76c54388 Mon Sep 17 00:00:00 2001 From: Maxime Corteel Date: Tue, 29 Mar 2016 16:16:12 +0200 Subject: Generate avatar color based on name instead of initials --- app/User/Avatar/LetterAvatarProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/User') diff --git a/app/User/Avatar/LetterAvatarProvider.php b/app/User/Avatar/LetterAvatarProvider.php index cf04f2a7..f9659e61 100644 --- a/app/User/Avatar/LetterAvatarProvider.php +++ b/app/User/Avatar/LetterAvatarProvider.php @@ -31,7 +31,7 @@ class LetterAvatarProvider extends Base implements AvatarProviderInterface public function render(array $user, $size) { $initials = $this->helper->user->getInitials($user['name'] ?: $user['username']); - $rgb = $this->getBackgroundColor($initials); + $rgb = $this->getBackgroundColor($user['name'] ?: $user['username']); return sprintf( '
%s
', -- cgit v1.2.3