aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-12-19 18:53:33 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-12-19 20:21:32 -0800
commiteaaea661d85d410f97d9420b86298dc7590396a7 (patch)
tree645027b43345b0dbce7b5a465dbd6bdc84c2c741 /adenosine-pds/src
parent285c57e49ec15e2caac2c9f57c5407654005e28f (diff)
downloadadenosine-eaaea661d85d410f97d9420b86298dc7590396a7.tar.gz
adenosine-eaaea661d85d410f97d9420b86298dc7590396a7.zip
pds: stubs for new app.bsky.actor RPC queries
Diffstat (limited to 'adenosine-pds/src')
-rw-r--r--adenosine-pds/src/lib.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs
index c33a0a3..8e32692 100644
--- a/adenosine-pds/src/lib.rs
+++ b/adenosine-pds/src/lib.rs
@@ -446,6 +446,20 @@ fn xrpc_get_handler(
let mut srv = srv.lock().unwrap();
Ok(json!(bsky_get_profile(&mut srv, &did)?))
}
+ "app.bsky.actor.search" => {
+ // TODO: actual implementation
+ let _term = xrpc_required_param(request, "term")?;
+ Ok(json!({"users": []}))
+ }
+ "app.bsky.actor.searchTypeahead" => {
+ // TODO: actual implementation
+ let _term = xrpc_required_param(request, "term")?;
+ Ok(json!({"users": []}))
+ }
+ "app.bsky.actor.getSuggestions" => {
+ // TODO: actual implementation
+ Ok(json!({"actors": []}))
+ }
"app.bsky.feed.getAuthorFeed" => {
// TODO did or handle
let did = Did::from_str(&xrpc_required_param(request, "author")?)?;