Update AvatarPipeline

This commit is contained in:
Daniel Supernault 2019-03-01 22:15:45 -07:00
parent 21f1530b86
commit 047d89c1b2
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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