From 285c57e49ec15e2caac2c9f57c5407654005e28f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 19 Dec 2022 18:53:09 -0800 Subject: pds: some TODO notes about new lexicon changes --- adenosine-pds/src/lib.rs | 1 + adenosine-pds/src/models.rs | 2 ++ 2 files changed, 3 insertions(+) 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 { -- cgit v1.2.3