import: Skip setting user_profile_id metadata only if unavailable.

This commit is contained in:
Vishnu Ks
2020-01-11 18:51:31 +00:00
committed by Tim Abbott
parent 2ea53a347a
commit 5a59bf329e

View File

@@ -660,7 +660,7 @@ def import_uploads(realm: Realm, import_dir: Path, processes: int, processing_av
if s3_uploads:
key = Key(bucket)
key.key = relative_path
if processing_emojis:
if processing_emojis and "user_profile_id" not in record:
# Exported custom emoji from tools like Slack don't have
# the data for what user uploaded them in `user_profile_id`.
pass