mirror of https://github.com/zulip/zulip.git
import: Fix incorrect RealmEmoji query.
The name field is not present in exports from the S3 backend.
This commit is contained in:
parent
4caa396f49
commit
ba8801b07f
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue