1
0
Fork 0

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