From 84b25f44d8858134fa63bc3b2c366c3be1debf6f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 27 Nov 2018 13:58:02 +0300 Subject: ActivityPub: add Emoji to known context subtypes --- src/main/java/com/juick/server/api/activity/model/Context.java | 1 + .../java/com/juick/server/api/activity/model/objects/Emoji.java | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 src/main/java/com/juick/server/api/activity/model/objects/Emoji.java (limited to 'src/main/java/com/juick/server/api/activity') 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 { +} -- cgit v1.2.3