mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-01 01:30:46 +08:00
Set replyTo and location fields in Comment to null
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user