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();