diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-12-19 21:50:14 -0800 |
---|---|---|
committer | bryan newbold <bnewbold@robocracy.org> | 2022-12-20 00:29:58 -0800 |
commit | 2cd76edf9d418edce85ad624d99e2eb1d4bf267d (patch) | |
tree | fb116f774494ce3e43fcf4994031fd0fc27c0466 /adenosine-pds/src/lib.rs | |
parent | 8b6dc7a93d6aa37338aa49dfd28f754ad7ee2a23 (diff) | |
download | adenosine-2cd76edf9d418edce85ad624d99e2eb1d4bf267d.tar.gz adenosine-2cd76edf9d418edce85ad624d99e2eb1d4bf267d.zip |
pds: for non-existant DID as an error, not panic
Diffstat (limited to 'adenosine-pds/src/lib.rs')
-rw-r--r-- | adenosine-pds/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs index 9721652..f855e59 100644 --- a/adenosine-pds/src/lib.rs +++ b/adenosine-pds/src/lib.rs @@ -444,6 +444,7 @@ fn xrpc_get_handler( // TODO did or handle let did = Did::from_str(&xrpc_required_param(request, "actor")?)?; let mut srv = srv.lock().unwrap(); + // TODO: if profile doesn't exist, return a 404 Ok(json!(bsky_get_profile(&mut srv, &did)?)) } "app.bsky.actor.search" => { |