summaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src
diff options
context:
space:
mode:
Diffstat (limited to 'adenosine-pds/src')
-rw-r--r--adenosine-pds/src/lib.rs1
-rw-r--r--adenosine-pds/src/models.rs2
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 {