Fix identity not fetching emoji (#397)

This commit is contained in:
Humberto Rocha 2023-01-11 19:07:59 -05:00 committed by GitHub
parent e68158202e
commit ae74d65157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ class Identity(StatorModel):
self.domain = await get_domain(actor_url_parts.hostname) self.domain = await get_domain(actor_url_parts.hostname)
# Emojis (we need the domain so we do them here) # Emojis (we need the domain so we do them here)
for tag in get_list(document, "tag"): 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) await sync_to_async(Emoji.by_ap_tag)(self.domain, tag, create=True)
# Mark as fetched # Mark as fetched
self.fetched = timezone.now() self.fetched = timezone.now()