1
0
Fork 0
forked from mirror/pixelfed

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

Update AvatarPipeline
This commit is contained in:
daniel 2019-03-01 22:16:38 -07:00 committed by GitHub
commit 5bbd3d803b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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