Browse Source

Update AvatarPipeline

Daniel Supernault 6 years ago
parent
commit
047d89c1b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Jobs/AvatarPipeline/AvatarOptimize.php

+ 1 - 1
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)) {