aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/api/activity
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-07-06 12:26:25 +0300
committerGravatar Vitaly Takmazov2019-07-06 12:26:25 +0300
commit0c644d5b1c8a744252642e9950156c5ca81a597e (patch)
tree1c63ee731133d2620e6bbfab3b303bd12442b81e /src/main/java/com/juick/server/api/activity
parent79a9f1509c4430f6e65c67e41098ef7aaa227c3f (diff)
ActivityPub: Mastodon hashtag should have href
It should fix displaying as attachment in Mastodon feed
Diffstat (limited to 'src/main/java/com/juick/server/api/activity')
-rw-r--r--src/main/java/com/juick/server/api/activity/model/objects/Hashtag.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/api/activity/model/objects/Hashtag.java b/src/main/java/com/juick/server/api/activity/model/objects/Hashtag.java
index 34e73be6..46ad424e 100644
--- a/src/main/java/com/juick/server/api/activity/model/objects/Hashtag.java
+++ b/src/main/java/com/juick/server/api/activity/model/objects/Hashtag.java
@@ -1,6 +1,11 @@
package com.juick.server.api.activity.model.objects;
-import com.juick.server.api.activity.model.Context;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
-public class Hashtag extends Context {
+public class Hashtag extends Mention {
+ @JsonCreator
+ public Hashtag(@JsonProperty("href") String href, @JsonProperty("name") String name) {
+ super(href, name);
+ }
}