forked from mirror/pixelfed
Merge pull request #924 from pixelfed/frontend-ui-refactor
Update AvatarPipeline
This commit is contained in:
commit
5bbd3d803b
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue