diff options
author | 2018-10-05 00:26:18 +0300 | |
---|---|---|
committer | 2018-10-05 00:26:18 +0300 | |
commit | a6824b011325df07caf284352f09c2b9f76155c7 (patch) | |
tree | a46d7b4eb2cd76583c990300b2fce0e908f119da /juick-server/src/main/java | |
parent | 0559e1f5239d1f5496155eacd447bdad75e19006 (diff) |
ActivityPub: deserialize Like activity
Diffstat (limited to 'juick-server/src/main/java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/activity/model/Context.java | 1 | ||||
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/activity/model/activities/Like.java | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/model/Context.java b/juick-server/src/main/java/com/juick/server/api/activity/model/Context.java index 984eb2cd..a645d746 100644 --- a/juick-server/src/main/java/com/juick/server/api/activity/model/Context.java +++ b/juick-server/src/main/java/com/juick/server/api/activity/model/Context.java @@ -18,6 +18,7 @@ import java.util.List; @JsonSubTypes.Type(value = Follow.class, name = "Follow"), @JsonSubTypes.Type(value = Accept.class, name = "Accept"), @JsonSubTypes.Type(value = Undo.class, name = "Undo"), + @JsonSubTypes.Type(value = Like.class, name = "Like"), @JsonSubTypes.Type(value = Image.class, name = "Image"), @JsonSubTypes.Type(value = Key.class, name = "Key"), @JsonSubTypes.Type(value = Link.class, name = "Link"), diff --git a/juick-server/src/main/java/com/juick/server/api/activity/model/activities/Like.java b/juick-server/src/main/java/com/juick/server/api/activity/model/activities/Like.java new file mode 100644 index 00000000..3670293d --- /dev/null +++ b/juick-server/src/main/java/com/juick/server/api/activity/model/activities/Like.java @@ -0,0 +1,6 @@ +package com.juick.server.api.activity.model.activities; + +import com.juick.server.api.activity.model.Activity; + +public class Like extends Activity { +} |