mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-11 01:41:05 +00:00
Make emoji better on the wire
This commit is contained in:
parent
606c628343
commit
d7ffb47fb2
2 changed files with 2 additions and 2 deletions
|
@ -214,7 +214,7 @@ class Emoji(StatorModel):
|
|||
"""
|
||||
return {
|
||||
"id": self.object_uri or f"https://{settings.MAIN_DOMAIN}/emoji/{self.pk}/",
|
||||
"type": "Emoji",
|
||||
"type": "toot:Emoji",
|
||||
"name": self.shortcode,
|
||||
"icon": {
|
||||
"type": "Image",
|
||||
|
|
|
@ -679,7 +679,7 @@ class Post(StatorModel):
|
|||
post.mentions.add(mention_identity)
|
||||
elif tag["type"].lower() == "hashtag":
|
||||
post.hashtags.append(tag["name"].lower().lstrip("#"))
|
||||
elif tag["type"].lower() == "toot:emoji":
|
||||
elif tag["type"].lower() in ["toot:emoji", "emoji"]:
|
||||
emoji = Emoji.by_ap_tag(post.author.domain, tag, create=True)
|
||||
post.emojis.add(emoji)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue