aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-03-01 06:29:24 +0300
committerGravatar Vitaly Takmazov2024-03-01 06:29:24 +0300
commit524290e3bfd5a9f410eef90eb723972eb9a84b3e (patch)
tree707c477977e3a4fd9c73f1883fe12ac69f99846a /src/main/java/com/juick/www
parenteb4acb1d7f70ddf93308f0ffc6f26c54172b206a (diff)
ActivityPub: add missing fields to Update activities to make Mastodon happy
Diffstat (limited to 'src/main/java/com/juick/www')
-rw-r--r--src/main/java/com/juick/www/api/activity/model/Context.java9
-rw-r--r--src/main/java/com/juick/www/api/activity/model/objects/Note.java10
2 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/com/juick/www/api/activity/model/Context.java b/src/main/java/com/juick/www/api/activity/model/Context.java
index 77c1fdcb..cfcc9379 100644
--- a/src/main/java/com/juick/www/api/activity/model/Context.java
+++ b/src/main/java/com/juick/www/api/activity/model/Context.java
@@ -72,6 +72,7 @@ public class Context implements Serializable {
private String url;
private List<String> to;
+ private List<String> cc;
private List<Context> tags;
@@ -163,4 +164,12 @@ public class Context implements Serializable {
public void setIcon(Image icon) {
this.icon = icon;
}
+
+ public List<String> getCc() {
+ return cc;
+ }
+
+ public void setCc(List<String> cc) {
+ this.cc = cc;
+ }
}
diff --git a/src/main/java/com/juick/www/api/activity/model/objects/Note.java b/src/main/java/com/juick/www/api/activity/model/objects/Note.java
index 7889b172..465ad07c 100644
--- a/src/main/java/com/juick/www/api/activity/model/objects/Note.java
+++ b/src/main/java/com/juick/www/api/activity/model/objects/Note.java
@@ -20,6 +20,7 @@ package com.juick.www.api.activity.model.objects;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.juick.www.api.activity.model.Context;
+import java.time.Instant;
import java.util.List;
public class Note extends Context {
@@ -30,6 +31,7 @@ public class Note extends Context {
private List<String> to;
private List<String> cc;
private boolean sensitive;
+ private Instant updated;
public String getContent() {
return content;
@@ -87,4 +89,12 @@ public class Note extends Context {
public void setSensitive(boolean sensitive) {
this.sensitive = sensitive;
}
+
+ public Instant getUpdated() {
+ return updated;
+ }
+
+ public void setUpdated(Instant updated) {
+ this.updated = updated;
+ }
}