diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-12-19 18:53:09 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-12-19 18:53:09 -0800 |
commit | 285c57e49ec15e2caac2c9f57c5407654005e28f (patch) | |
tree | fa6261702fe9ab74f1d42804769e80baf0914050 /adenosine-pds | |
parent | 110d15e345824b57d83d336d55f383509333ae99 (diff) | |
download | adenosine-285c57e49ec15e2caac2c9f57c5407654005e28f.tar.gz adenosine-285c57e49ec15e2caac2c9f57c5407654005e28f.zip |
pds: some TODO notes about new lexicon changes
Diffstat (limited to 'adenosine-pds')
-rw-r--r-- | adenosine-pds/src/lib.rs | 1 | ||||
-rw-r--r-- | adenosine-pds/src/models.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs index 6a3a8cb..c33a0a3 100644 --- a/adenosine-pds/src/lib.rs +++ b/adenosine-pds/src/lib.rs @@ -350,6 +350,7 @@ fn xrpc_get_handler( if let Some(domain) = &srv.config.registration_domain { avail_domains.push(domain) } + // TODO: optional "links" object with "privacyPolicy" and "termsOfService" URLs Ok( json!({"availableUserDomains": avail_domains, "inviteCodeRequired": srv.config.invite_code.is_some()}), ) diff --git a/adenosine-pds/src/models.rs b/adenosine-pds/src/models.rs index 6dbe725..6c02a71 100644 --- a/adenosine-pds/src/models.rs +++ b/adenosine-pds/src/models.rs @@ -158,6 +158,8 @@ pub struct PostThread { pub thread: ThreadItem, } +// TODO: 'parent' and 'replies' should allow "NotFoundPost" for references that point to an unknown +// URI #[allow(non_snake_case)] #[derive(Debug, serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)] pub struct ThreadItem { |