kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			Update Avatar Migration command, use jpeg default
							rodzic
							
								
									ae0f355409
								
							
						
					
					
						commit
						be3ad6b15f
					
				|  | @ -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(); | ||||
| 
 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Daniel Supernault
						Daniel Supernault