mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 16:23:16 +00:00
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