aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api/activity/model/objects
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/api/activity/model/objects
parenteb4acb1d7f70ddf93308f0ffc6f26c54172b206a (diff)
ActivityPub: add missing fields to Update activities to make Mastodon happy
Diffstat (limited to 'src/main/java/com/juick/www/api/activity/model/objects')
-rw-r--r--src/main/java/com/juick/www/api/activity/model/objects/Note.java10
1 files changed, 10 insertions, 0 deletions
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;
+ }
}