Set replyTo and location fields in Comment to null

This commit is contained in:
Sebastian Martinez
2025-03-13 08:02:02 +01:00
parent 0efb4e09f7
commit 7cf21972cd
2 changed files with 3 additions and 4 deletions
@@ -10,8 +10,8 @@ export type Comment<T = Never> = {
author: Author;
edits: Array<Edit>;
reactions: Array<Reaction>;
replyTo?: string;
location?: T;
replyTo: string | null;
location: T | null;
embeds?: Array<Embed>;
resolved: boolean;
};
+1 -2
View File
@@ -42,9 +42,8 @@ pub struct Comment<T = cobs::Never> {
author: cobs::Author,
edits: Vec<models::patch::Edit>,
reactions: Vec<cobs::thread::Reaction>,
#[ts(as = "Option<String>", optional)]
#[ts(as = "Option<String>")]
reply_to: Option<cob::thread::CommentId>,
#[ts(optional)]
location: Option<T>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(as = "Option<_>", optional)]