diff options
author | Vitaly Takmazov | 2024-03-18 16:41:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-03-18 16:41:36 +0300 |
commit | 9e34f63f7921ba68bd63efc851f5a87518a682b5 (patch) | |
tree | 0ce05c4f152306a92d2121cf5ad5f7ab0af45c0a /src/main/java/com/juick/www/api/activity/model/objects | |
parent | 8207857f4a3ab8a3bdae8aa248637700c6072dd0 (diff) |
ActivityPub: coalesce empty `cc` field to array
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.java | 1 |
1 files changed, 1 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 6792c34e..652bfa77 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 @@ -28,6 +28,7 @@ public class Note extends Context { private String inReplyTo; private List<Context> attachment; private List<String> to; + @JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY) private List<String> cc; private boolean sensitive; private Instant updated; |