forked from mirror/pixelfed
Merge pull request #924 from pixelfed/frontend-ui-refactor
Update AvatarPipeline
This commit is contained in:
commit
5bbd3d803b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue