From 3188babc5e9acb46816a6d4a917c31340af11298 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 6 Jul 2019 14:31:16 +0300 Subject: ActivityPub contexts already have type, no need to duplicate --- src/main/java/com/juick/server/api/activity/model/Context.java | 4 ---- .../java/com/juick/server/api/activity/model/objects/Person.java | 5 ----- 2 files changed, 9 deletions(-) (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 687848cc..d617f99b 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 @@ -60,10 +60,6 @@ public abstract class Context { this.id = id; } - public String getType() { - return getClass().getSimpleName(); - } - @JsonProperty("@context") @JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY) public List getContext() { diff --git a/src/main/java/com/juick/server/api/activity/model/objects/Person.java b/src/main/java/com/juick/server/api/activity/model/objects/Person.java index 2d3a45d7..a6fd9a76 100644 --- a/src/main/java/com/juick/server/api/activity/model/objects/Person.java +++ b/src/main/java/com/juick/server/api/activity/model/objects/Person.java @@ -14,11 +14,6 @@ public class Person extends Context { private String followers; private Key publicKey; - @Override - public String getType() { - return "Person"; - } - public String getName() { return name; } -- cgit v1.2.3