1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

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