From ae74d65157be0cb837e109782ce0adf129b64235 Mon Sep 17 00:00:00 2001 From: Humberto Rocha Date: Wed, 11 Jan 2023 19:07:59 -0500 Subject: [PATCH] Fix identity not fetching emoji (#397) --- users/models/identity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models/identity.py b/users/models/identity.py index 632ee4f..6ea45ec 100644 --- a/users/models/identity.py +++ b/users/models/identity.py @@ -781,7 +781,7 @@ class Identity(StatorModel): self.domain = await get_domain(actor_url_parts.hostname) # Emojis (we need the domain so we do them here) for tag in get_list(document, "tag"): - if tag["type"].lower() == "toot:emoji": + if tag["type"].lower() in ["toot:emoji", "emoji"]: await sync_to_async(Emoji.by_ap_tag)(self.domain, tag, create=True) # Mark as fetched self.fetched = timezone.now()