mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	import: Ensure presence of basic avatar images for HipChat.
Our HipChat conversion tool didn't properly handle basic avatar images, resulting in only the medium-size avatar images being imported properly. This fixes that bug by asking the import tool to do the thumbnailing for the basic avatar image (from the .original file) as well as the medium avatar image.
This commit is contained in:
		@@ -633,6 +633,8 @@ def import_uploads(import_dir: Path, processing_avatars: bool=False,
 | 
			
		||||
                        # same realm ID from a previous iteration).
 | 
			
		||||
                        os.remove(medium_file_path)
 | 
			
		||||
                upload_backend.ensure_medium_avatar_image(user_profile=user_profile)
 | 
			
		||||
                if record.get("importer_should_thumbnail"):
 | 
			
		||||
                    upload_backend.ensure_basic_avatar_image(user_profile=user_profile)
 | 
			
		||||
 | 
			
		||||
# Importing data suffers from a difficult ordering problem because of
 | 
			
		||||
# models that reference each other circularly.  Here is a correct order.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user