diff --git a/app/Jobs/AvatarPipeline/AvatarOptimize.php b/app/Jobs/AvatarPipeline/AvatarOptimize.php index 346afb01..17d02081 100644 --- a/app/Jobs/AvatarPipeline/AvatarOptimize.php +++ b/app/Jobs/AvatarPipeline/AvatarOptimize.php @@ -67,7 +67,7 @@ class AvatarOptimize implements ShouldQueue protected function deleteOldAvatar($new, $current) { - if (storage_path('app/'.$new) == $current) { + if (storage_path('app/'.$new) == $current || $current == 'public/avatars/default.png') { return; } if (is_file($current)) {