Fix identity not fetching emoji (#397)
This commit is contained in:
parent
e68158202e
commit
ae74d65157
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue