From e83cc80dbe92da38554cefcd04ed1a3d20228970 Mon Sep 17 00:00:00 2001 From: Masroor Ehsan Date: Sun, 5 Jan 2025 20:07:08 +0600 Subject: [PATCH] minor --- app/Http/Controllers/SocialLoginController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SocialLoginController.php b/app/Http/Controllers/SocialLoginController.php index 5b38457..f8ced0c 100644 --- a/app/Http/Controllers/SocialLoginController.php +++ b/app/Http/Controllers/SocialLoginController.php @@ -32,8 +32,10 @@ public function handleProviderCallback(string $driver) $updates = []; if (blank($user->profile_photo_path)) { - $updates['profile_photo_path'] = $this->buildAvatarUrl($social->getAvatar(), $social->token); - $updates['profile_photo_path'] = $this->fetchAvatar($social->getAvatar(), $social->token, $user->profilePhotoDisk()); + $updates['profile_photo_path'] = $this->fetchAvatar( + $social->getAvatar(), + $social->token, + $user->profilePhotoDisk()); } if (blank($user->email)) { $updates['email'] = $social->getEmail();