From 047d89c1b235bf8c7edcdbd5eaf70e4b8616a239 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 1 Mar 2019 22:15:45 -0700 Subject: [PATCH] Update AvatarPipeline --- app/Jobs/AvatarPipeline/AvatarOptimize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {