aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/api/activity
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-27 13:58:02 +0300
committerGravatar Vitaly Takmazov2018-11-27 13:58:50 +0300
commit84b25f44d8858134fa63bc3b2c366c3be1debf6f (patch)
tree5d162aab97ac97ff71d19173537a2223f15f997d /src/main/java/com/juick/server/api/activity
parentbba101a57e0504339f9b5368979885c1bfbf6d76 (diff)
ActivityPub: add Emoji to known context subtypes
Diffstat (limited to 'src/main/java/com/juick/server/api/activity')
-rw-r--r--src/main/java/com/juick/server/api/activity/model/Context.java1
-rw-r--r--src/main/java/com/juick/server/api/activity/model/objects/Emoji.java6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/api/activity/model/Context.java b/src/main/java/com/juick/server/api/activity/model/Context.java
index 0df8f8c7..515ee3da 100644
--- a/src/main/java/com/juick/server/api/activity/model/Context.java
+++ b/src/main/java/com/juick/server/api/activity/model/Context.java
@@ -30,6 +30,7 @@ import java.util.List;
@JsonSubTypes.Type(value = Link.class, name = "Link"),
@JsonSubTypes.Type(value = Hashtag.class, name = "Hashtag"),
@JsonSubTypes.Type(value = Mention.class, name = "Mention"),
+ @JsonSubTypes.Type(value = Emoji.class, name = "Emoji"),
@JsonSubTypes.Type(value = Note.class, name = "Note"),
@JsonSubTypes.Type(value = OrderedCollection.class, name = "OrderedCollection"),
@JsonSubTypes.Type(value = OrderedCollectionPage.class, name = "OrderedCollectionPage"),
diff --git a/src/main/java/com/juick/server/api/activity/model/objects/Emoji.java b/src/main/java/com/juick/server/api/activity/model/objects/Emoji.java
new file mode 100644
index 00000000..1200b70a
--- /dev/null
+++ b/src/main/java/com/juick/server/api/activity/model/objects/Emoji.java
@@ -0,0 +1,6 @@
+package com.juick.server.api.activity.model.objects;
+
+import com.juick.server.api.activity.model.Context;
+
+public class Emoji extends Context {
+}