1
0
Эх сурвалжийг харах

Merge pull request #924 from pixelfed/frontend-ui-refactor

Update AvatarPipeline
daniel 6 жил өмнө
parent
commit
5bbd3d803b

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