mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 17:53:16 +00:00
Update AvatarPipeline
This commit is contained in:
parent
21f1530b86
commit
047d89c1b2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue