summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
Diffstat (limited to 'activities')
-rw-r--r--activities/models/emoji.py2
-rw-r--r--activities/models/post.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/activities/models/emoji.py b/activities/models/emoji.py
index c310423..8af28e3 100644
--- a/activities/models/emoji.py
+++ b/activities/models/emoji.py
@@ -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",
diff --git a/activities/models/post.py b/activities/models/post.py
index 6847327..8a9aabb 100644
--- a/activities/models/post.py
+++ b/activities/models/post.py
@@ -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: