aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'adenosine-pds/src/models.rs')
-rw-r--r--adenosine-pds/src/models.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/adenosine-pds/src/models.rs b/adenosine-pds/src/models.rs
index 3af780e..6dbe725 100644
--- a/adenosine-pds/src/models.rs
+++ b/adenosine-pds/src/models.rs
@@ -155,7 +155,7 @@ pub struct PostReply {
#[allow(non_snake_case)]
#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)]
pub struct PostThread {
- pub thread: Vec<ThreadItem>,
+ pub thread: ThreadItem,
}
#[allow(non_snake_case)]
@@ -168,7 +168,7 @@ pub struct ThreadItem {
pub record: Value,
//pub embed?: RecordEmbed | ExternalEmbed | UnknownEmbed,
pub embed: Option<Value>,
- pub parent: Box<ThreadItem>,
+ pub parent: Option<Box<ThreadItem>>,
pub replyCount: u64,
pub replies: Option<Vec<ThreadItem>>,
pub likeCount: u64,