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

Update AvatarPipeline
pull/936/head
daniel 7 years ago committed by GitHub
commit 5bbd3d803b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save