Update AvatarPipeline

pull/924/head
Daniel Supernault 7 years ago
parent 21f1530b86
commit 047d89c1b2
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -67,7 +67,7 @@ class AvatarOptimize implements ShouldQueue
protected function deleteOldAvatar($new, $current) protected function deleteOldAvatar($new, $current)
{ {
if (storage_path('app/'.$new) == $current) { if (storage_path('app/'.$new) == $current || $current == 'public/avatars/default.png') {
return; return;
} }
if (is_file($current)) { if (is_file($current)) {

Loading…
Cancel
Save