aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-12-19 23:59:55 -0800
committerbryan newbold <bnewbold@robocracy.org>2022-12-20 00:29:58 -0800
commitee33d2559d6695149a6a15b948ae2ab1a254e251 (patch)
treef85a0f3b7b0ddbc5f2c71f7e4cb958b6ab971d42 /adenosine-pds/src/models.rs
parent8d020c0088dce778c25c43c2572a6c197869a208 (diff)
downloadadenosine-ee33d2559d6695149a6a15b948ae2ab1a254e251.tar.gz
adenosine-ee33d2559d6695149a6a15b948ae2ab1a254e251.zip
pds: make 'cid' required in feed items
Diffstat (limited to 'adenosine-pds/src/models.rs')
-rw-r--r--adenosine-pds/src/models.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/adenosine-pds/src/models.rs b/adenosine-pds/src/models.rs
index 573ff2f..f827a7a 100644
--- a/adenosine-pds/src/models.rs
+++ b/adenosine-pds/src/models.rs
@@ -169,8 +169,7 @@ pub struct User {
#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)]
pub struct FeedItem {
pub uri: String,
- // TODO: cid is required
- pub cid: Option<String>,
+ pub cid: String,
pub author: User,
pub repostedBy: Option<User>,
pub record: Value,
@@ -211,8 +210,7 @@ pub struct PostThread {
#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)]
pub struct ThreadItem {
pub uri: String,
- // TODO: CID is required
- pub cid: Option<String>,
+ pub cid: String,
pub author: User,
pub record: Value,
//pub embed?: RecordEmbed | ExternalEmbed | UnknownEmbed,