mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Avatar Migration command, use jpeg default
This commit is contained in:
parent
ae0f355409
commit
be3ad6b15f
1 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ class AvatarDefaultMigration extends Command
|
|||
if( $avatar->media_path == 'public/avatars/default.png' ||
|
||||
$avatar->thumb_path == 'public/avatars/default.png' ||
|
||||
$avatar->media_path == 'public/avatars/default.jpg' ||
|
||||
$avatar->thumb_path == 'public/avatars/default.jpg' ||
|
||||
$avatar->thumb_path == 'public/avatars/default.jpg'
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
@ -76,8 +76,8 @@ class AvatarDefaultMigration extends Command
|
|||
@unlink(storage_path('app/' . $avatar->thumb_path));
|
||||
}
|
||||
|
||||
$avatar->media_path = 'public/avatars/default.png';
|
||||
$avatar->thumb_path = 'public/avatars/default.png';
|
||||
$avatar->media_path = 'public/avatars/default.jpg';
|
||||
$avatar->thumb_path = 'public/avatars/default.jpg';
|
||||
$avatar->change_count = $avatar->change_count + 1;
|
||||
$avatar->save();
|
||||
|
||||
|
|
Loading…
Reference in a new issue