Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
transfer_avatars_to_s3: Exclude processing users with gravatar.
Prakhar Pratyushb678a4be5575
diff --git a/zerver/lib/transfer.py b/zerver/lib/transfer.pyindex 7abe40d4caa..758ba657aa4 100644--- a/zerver/lib/transfer.py+++ b/zerver/lib/transfer.py@@ -49,7 +49,11 @@ def _transfer_avatar_to_s3(user: UserProfile) -> None:def transfer_avatars_to_s3(processes: int) -> None:- run_parallel(_transfer_avatar_to_s3, UserProfile.objects.all(), processes)+ run_parallel(+ _transfer_avatar_to_s3,+ UserProfile.objects.exclude(avatar_source=UserProfile.AVATAR_FROM_GRAVATAR),+ processes,+ )def _transfer_message_files_to_s3(attachment: Attachment) -> None: