From ba8801b07f8c28eab3af7531cb7276eb0295112c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 8 Oct 2024 17:13:20 -0700 Subject: [PATCH] import: Fix incorrect RealmEmoji query. The name field is not present in exports from the S3 backend. --- zerver/lib/import_realm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/import_realm.py b/zerver/lib/import_realm.py index 47fba79448..92f1297a5a 100644 --- a/zerver/lib/import_realm.py +++ b/zerver/lib/import_realm.py @@ -878,7 +878,7 @@ def process_emojis( # while 3rd party exports don't use the deactivated field, so this shouldn't # particularly matter. RealmEmoji.objects.filter( - name=record["name"], realm_id=user_profile.realm_id, deactivated=False + file_name=record["file_name"], realm_id=user_profile.realm_id, deactivated=False ).update(is_animated=True)