mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 06:58:31 +00:00
import: Fix incorrect RealmEmoji query.
The name field is not present in exports from the S3 backend.
This commit is contained in:
@@ -878,7 +878,7 @@ def process_emojis(
|
|||||||
# while 3rd party exports don't use the deactivated field, so this shouldn't
|
# while 3rd party exports don't use the deactivated field, so this shouldn't
|
||||||
# particularly matter.
|
# particularly matter.
|
||||||
RealmEmoji.objects.filter(
|
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)
|
).update(is_animated=True)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user